home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / libogg / libogg-1.0rc3 / configure < prev    next >
Encoding:
Text File  |  2002-10-27  |  190.4 KB  |  6,255 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  16. ac_help="$ac_help
  17.   --enable-static[=PKGS]  build static libraries [default=yes]"
  18. ac_help="$ac_help
  19.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  20. ac_help="$ac_help
  21.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  22.  
  23. # Find the correct PATH separator.  Usually this is `:', but
  24. # DJGPP uses `;' like DOS.
  25. if test "X${PATH_SEPARATOR+set}" != Xset; then
  26.   UNAME=${UNAME-`uname 2>/dev/null`}
  27.   case X$UNAME in
  28.     *-DOS) lt_cv_sys_path_separator=';' ;;
  29.     *)     lt_cv_sys_path_separator=':' ;;
  30.   esac
  31.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  32. fi
  33.  
  34.  
  35. # Check that we are running under the correct shell.
  36. SHELL=${CONFIG_SHELL-/bin/sh}
  37.  
  38. case X$ECHO in
  39. X*--fallback-echo)
  40.   # Remove one level of quotation (which was required for Make).
  41.   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  42.   ;;
  43. esac
  44.  
  45. echo=${ECHO-echo}
  46. if test "X$1" = X--no-reexec; then
  47.   # Discard the --no-reexec flag, and continue.
  48.   shift
  49. elif test "X$1" = X--fallback-echo; then
  50.   # Avoid inline document here, it may be left over
  51.   :
  52. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  53.   # Yippee, $echo works!
  54.   :
  55. else
  56.   # Restart under the correct shell.
  57.   exec $SHELL "$0" --no-reexec ${1+"$@"}
  58. fi
  59.  
  60. if test "X$1" = X--fallback-echo; then
  61.   # used as fallback echo
  62.   shift
  63.   cat <<EOF
  64.  
  65. EOF
  66.   exit 0
  67. fi
  68.  
  69. # The HP-UX ksh and POSIX shell print the target directory to stdout
  70. # if CDPATH is set.
  71. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  72.  
  73. if test -z "$ECHO"; then
  74. if test "X${echo_test_string+set}" != Xset; then
  75. # find a string as large as possible, as long as the shell can cope with it
  76.   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  77.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  78.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  79.        echo_test_string="`eval $cmd`" &&
  80.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  81.     then
  82.       break
  83.     fi
  84.   done
  85. fi
  86.  
  87. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  88.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  89.    test "X$echo_testing_string" = "X$echo_test_string"; then
  90.   :
  91. else
  92.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  93.   # backslashes.  This makes it impossible to quote backslashes using
  94.   #   echo "$something" | sed 's/\\/\\\\/g'
  95.   #
  96.   # So, first we look for a working echo in the user's PATH.
  97.  
  98.   IFS="${IFS=     }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  99.   for dir in $PATH /usr/ucb; do
  100.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  101.        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  102.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  103.        test "X$echo_testing_string" = "X$echo_test_string"; then
  104.       echo="$dir/echo"
  105.       break
  106.     fi
  107.   done
  108.   IFS="$save_ifs"
  109.  
  110.   if test "X$echo" = Xecho; then
  111.     # We didn't find a better echo, so look for alternatives.
  112.     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  113.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  114.        test "X$echo_testing_string" = "X$echo_test_string"; then
  115.       # This shell has a builtin print -r that does the trick.
  116.       echo='print -r'
  117.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  118.      test "X$CONFIG_SHELL" != X/bin/ksh; then
  119.       # If we have ksh, try running configure again with it.
  120.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  121.       export ORIGINAL_CONFIG_SHELL
  122.       CONFIG_SHELL=/bin/ksh
  123.       export CONFIG_SHELL
  124.       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  125.     else
  126.       # Try using printf.
  127.       echo='printf %s\n'
  128.       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  129.      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  130.      test "X$echo_testing_string" = "X$echo_test_string"; then
  131.     # Cool, printf works
  132.     :
  133.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  134.        test "X$echo_testing_string" = 'X\t' &&
  135.        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  136.        test "X$echo_testing_string" = "X$echo_test_string"; then
  137.     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  138.     export CONFIG_SHELL
  139.     SHELL="$CONFIG_SHELL"
  140.     export SHELL
  141.     echo="$CONFIG_SHELL $0 --fallback-echo"
  142.       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  143.        test "X$echo_testing_string" = 'X\t' &&
  144.        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  145.        test "X$echo_testing_string" = "X$echo_test_string"; then
  146.     echo="$CONFIG_SHELL $0 --fallback-echo"
  147.       else
  148.     # maybe with a smaller string...
  149.     prev=:
  150.  
  151.     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  152.       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  153.       then
  154.         break
  155.       fi
  156.       prev="$cmd"
  157.     done
  158.  
  159.     if test "$prev" != 'sed 50q "$0"'; then
  160.       echo_test_string=`eval $prev`
  161.       export echo_test_string
  162.       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  163.     else
  164.       # Oops.  We lost completely, so just stick with echo.
  165.       echo=echo
  166.     fi
  167.       fi
  168.     fi
  169.   fi
  170. fi
  171. fi
  172.  
  173. # Copy echo and quote the copy suitably for passing to libtool from
  174. # the Makefile, instead of quoting the original, which is used later.
  175. ECHO=$echo
  176. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  177.    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  178. fi
  179.  
  180.  
  181. ac_help="$ac_help
  182.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  183. ac_help="$ac_help
  184.   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
  185.  
  186. # Initialize some variables set by options.
  187. # The variables have the same names as the options, with
  188. # dashes changed to underlines.
  189. build=NONE
  190. cache_file=./config.cache
  191. exec_prefix=NONE
  192. host=NONE
  193. no_create=
  194. nonopt=NONE
  195. no_recursion=
  196. prefix=NONE
  197. program_prefix=NONE
  198. program_suffix=NONE
  199. program_transform_name=s,x,x,
  200. silent=
  201. site=
  202. srcdir=
  203. target=NONE
  204. verbose=
  205. x_includes=NONE
  206. x_libraries=NONE
  207. bindir='${exec_prefix}/bin'
  208. sbindir='${exec_prefix}/sbin'
  209. libexecdir='${exec_prefix}/libexec'
  210. datadir='${prefix}/share'
  211. sysconfdir='${prefix}/etc'
  212. sharedstatedir='${prefix}/com'
  213. localstatedir='${prefix}/var'
  214. libdir='${exec_prefix}/lib'
  215. includedir='${prefix}/include'
  216. oldincludedir='/usr/include'
  217. infodir='${prefix}/info'
  218. mandir='${prefix}/man'
  219.  
  220. # Initialize some other variables.
  221. subdirs=
  222. MFLAGS= MAKEFLAGS=
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. # Maximum number of lines to put in a shell here document.
  225. ac_max_here_lines=12
  226.  
  227. ac_prev=
  228. for ac_option
  229. do
  230.  
  231.   # If the previous option needs an argument, assign it.
  232.   if test -n "$ac_prev"; then
  233.     eval "$ac_prev=\$ac_option"
  234.     ac_prev=
  235.     continue
  236.   fi
  237.  
  238.   case "$ac_option" in
  239.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  240.   *) ac_optarg= ;;
  241.   esac
  242.  
  243.   # Accept the important Cygnus configure options, so we can diagnose typos.
  244.  
  245.   case "$ac_option" in
  246.  
  247.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  248.     ac_prev=bindir ;;
  249.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  250.     bindir="$ac_optarg" ;;
  251.  
  252.   -build | --build | --buil | --bui | --bu)
  253.     ac_prev=build ;;
  254.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  255.     build="$ac_optarg" ;;
  256.  
  257.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  258.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  259.     ac_prev=cache_file ;;
  260.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  261.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  262.     cache_file="$ac_optarg" ;;
  263.  
  264.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  265.     ac_prev=datadir ;;
  266.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  267.   | --da=*)
  268.     datadir="$ac_optarg" ;;
  269.  
  270.   -disable-* | --disable-*)
  271.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  272.     # Reject names that are not valid shell variable names.
  273.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  274.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  275.     fi
  276.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  277.     eval "enable_${ac_feature}=no" ;;
  278.  
  279.   -enable-* | --enable-*)
  280.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  281.     # Reject names that are not valid shell variable names.
  282.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  283.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  284.     fi
  285.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  286.     case "$ac_option" in
  287.       *=*) ;;
  288.       *) ac_optarg=yes ;;
  289.     esac
  290.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  291.  
  292.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  293.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  294.   | --exec | --exe | --ex)
  295.     ac_prev=exec_prefix ;;
  296.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  297.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  298.   | --exec=* | --exe=* | --ex=*)
  299.     exec_prefix="$ac_optarg" ;;
  300.  
  301.   -gas | --gas | --ga | --g)
  302.     # Obsolete; use --with-gas.
  303.     with_gas=yes ;;
  304.  
  305.   -help | --help | --hel | --he)
  306.     # Omit some internal or obsolete options to make the list less imposing.
  307.     # This message is too long to be a string in the A/UX 3.1 sh.
  308.     cat << EOF
  309. Usage: configure [options] [host]
  310. Options: [defaults in brackets after descriptions]
  311. Configuration:
  312.   --cache-file=FILE       cache test results in FILE
  313.   --help                  print this message
  314.   --no-create             do not create output files
  315.   --quiet, --silent       do not print \`checking...' messages
  316.   --version               print the version of autoconf that created configure
  317. Directory and file names:
  318.   --prefix=PREFIX         install architecture-independent files in PREFIX
  319.                           [$ac_default_prefix]
  320.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  321.                           [same as prefix]
  322.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  323.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  324.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  325.   --datadir=DIR           read-only architecture-independent data in DIR
  326.                           [PREFIX/share]
  327.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  328.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  329.                           [PREFIX/com]
  330.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  331.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  332.   --includedir=DIR        C header files in DIR [PREFIX/include]
  333.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  334.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  335.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  336.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  337.   --program-prefix=PREFIX prepend PREFIX to installed program names
  338.   --program-suffix=SUFFIX append SUFFIX to installed program names
  339.   --program-transform-name=PROGRAM
  340.                           run sed PROGRAM on installed program names
  341. EOF
  342.     cat << EOF
  343. Host type:
  344.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  345.   --host=HOST             configure for HOST [guessed]
  346.   --target=TARGET         configure for TARGET [TARGET=HOST]
  347. Features and packages:
  348.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  349.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  350.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  351.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  352.   --x-includes=DIR        X include files are in DIR
  353.   --x-libraries=DIR       X library files are in DIR
  354. EOF
  355.     if test -n "$ac_help"; then
  356.       echo "--enable and --with options recognized:$ac_help"
  357.     fi
  358.     exit 0 ;;
  359.  
  360.   -host | --host | --hos | --ho)
  361.     ac_prev=host ;;
  362.   -host=* | --host=* | --hos=* | --ho=*)
  363.     host="$ac_optarg" ;;
  364.  
  365.   -includedir | --includedir | --includedi | --included | --include \
  366.   | --includ | --inclu | --incl | --inc)
  367.     ac_prev=includedir ;;
  368.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  369.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  370.     includedir="$ac_optarg" ;;
  371.  
  372.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  373.     ac_prev=infodir ;;
  374.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  375.     infodir="$ac_optarg" ;;
  376.  
  377.   -libdir | --libdir | --libdi | --libd)
  378.     ac_prev=libdir ;;
  379.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  380.     libdir="$ac_optarg" ;;
  381.  
  382.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  383.   | --libexe | --libex | --libe)
  384.     ac_prev=libexecdir ;;
  385.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  386.   | --libexe=* | --libex=* | --libe=*)
  387.     libexecdir="$ac_optarg" ;;
  388.  
  389.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  390.   | --localstate | --localstat | --localsta | --localst \
  391.   | --locals | --local | --loca | --loc | --lo)
  392.     ac_prev=localstatedir ;;
  393.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  394.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  395.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  396.     localstatedir="$ac_optarg" ;;
  397.  
  398.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  399.     ac_prev=mandir ;;
  400.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  401.     mandir="$ac_optarg" ;;
  402.  
  403.   -nfp | --nfp | --nf)
  404.     # Obsolete; use --without-fp.
  405.     with_fp=no ;;
  406.  
  407.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  408.   | --no-cr | --no-c)
  409.     no_create=yes ;;
  410.  
  411.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  412.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  413.     no_recursion=yes ;;
  414.  
  415.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  416.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  417.   | --oldin | --oldi | --old | --ol | --o)
  418.     ac_prev=oldincludedir ;;
  419.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  420.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  421.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  422.     oldincludedir="$ac_optarg" ;;
  423.  
  424.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  425.     ac_prev=prefix ;;
  426.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  427.     prefix="$ac_optarg" ;;
  428.  
  429.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  430.   | --program-pre | --program-pr | --program-p)
  431.     ac_prev=program_prefix ;;
  432.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  433.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  434.     program_prefix="$ac_optarg" ;;
  435.  
  436.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  437.   | --program-suf | --program-su | --program-s)
  438.     ac_prev=program_suffix ;;
  439.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  440.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  441.     program_suffix="$ac_optarg" ;;
  442.  
  443.   -program-transform-name | --program-transform-name \
  444.   | --program-transform-nam | --program-transform-na \
  445.   | --program-transform-n | --program-transform- \
  446.   | --program-transform | --program-transfor \
  447.   | --program-transfo | --program-transf \
  448.   | --program-trans | --program-tran \
  449.   | --progr-tra | --program-tr | --program-t)
  450.     ac_prev=program_transform_name ;;
  451.   -program-transform-name=* | --program-transform-name=* \
  452.   | --program-transform-nam=* | --program-transform-na=* \
  453.   | --program-transform-n=* | --program-transform-=* \
  454.   | --program-transform=* | --program-transfor=* \
  455.   | --program-transfo=* | --program-transf=* \
  456.   | --program-trans=* | --program-tran=* \
  457.   | --progr-tra=* | --program-tr=* | --program-t=*)
  458.     program_transform_name="$ac_optarg" ;;
  459.  
  460.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  461.   | -silent | --silent | --silen | --sile | --sil)
  462.     silent=yes ;;
  463.  
  464.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  465.     ac_prev=sbindir ;;
  466.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  467.   | --sbi=* | --sb=*)
  468.     sbindir="$ac_optarg" ;;
  469.  
  470.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  471.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  472.   | --sharedst | --shareds | --shared | --share | --shar \
  473.   | --sha | --sh)
  474.     ac_prev=sharedstatedir ;;
  475.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  476.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  477.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  478.   | --sha=* | --sh=*)
  479.     sharedstatedir="$ac_optarg" ;;
  480.  
  481.   -site | --site | --sit)
  482.     ac_prev=site ;;
  483.   -site=* | --site=* | --sit=*)
  484.     site="$ac_optarg" ;;
  485.  
  486.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  487.     ac_prev=srcdir ;;
  488.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  489.     srcdir="$ac_optarg" ;;
  490.  
  491.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  492.   | --syscon | --sysco | --sysc | --sys | --sy)
  493.     ac_prev=sysconfdir ;;
  494.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  495.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  496.     sysconfdir="$ac_optarg" ;;
  497.  
  498.   -target | --target | --targe | --targ | --tar | --ta | --t)
  499.     ac_prev=target ;;
  500.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  501.     target="$ac_optarg" ;;
  502.  
  503.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  504.     verbose=yes ;;
  505.  
  506.   -version | --version | --versio | --versi | --vers)
  507.     echo "configure generated by autoconf version 2.13"
  508.     exit 0 ;;
  509.  
  510.   -with-* | --with-*)
  511.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  512.     # Reject names that are not valid shell variable names.
  513.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  514.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  515.     fi
  516.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  517.     case "$ac_option" in
  518.       *=*) ;;
  519.       *) ac_optarg=yes ;;
  520.     esac
  521.     eval "with_${ac_package}='$ac_optarg'" ;;
  522.  
  523.   -without-* | --without-*)
  524.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  525.     # Reject names that are not valid shell variable names.
  526.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  527.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  528.     fi
  529.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  530.     eval "with_${ac_package}=no" ;;
  531.  
  532.   --x)
  533.     # Obsolete; use --with-x.
  534.     with_x=yes ;;
  535.  
  536.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537.   | --x-incl | --x-inc | --x-in | --x-i)
  538.     ac_prev=x_includes ;;
  539.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541.     x_includes="$ac_optarg" ;;
  542.  
  543.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  544.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  545.     ac_prev=x_libraries ;;
  546.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  547.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  548.     x_libraries="$ac_optarg" ;;
  549.  
  550.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  551.     ;;
  552.  
  553.   *)
  554.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  555.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  556.     fi
  557.     if test "x$nonopt" != xNONE; then
  558.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  559.     fi
  560.     nonopt="$ac_option"
  561.     ;;
  562.  
  563.   esac
  564. done
  565.  
  566. if test -n "$ac_prev"; then
  567.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  568. fi
  569.  
  570. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  571.  
  572. # File descriptor usage:
  573. # 0 standard input
  574. # 1 file creation
  575. # 2 errors and warnings
  576. # 3 some systems may open it to /dev/tty
  577. # 4 used on the Kubota Titan
  578. # 6 checking for... messages and results
  579. # 5 compiler messages saved in config.log
  580. if test "$silent" = yes; then
  581.   exec 6>/dev/null
  582. else
  583.   exec 6>&1
  584. fi
  585. exec 5>./config.log
  586.  
  587. echo "\
  588. This file contains any messages produced by compilers while
  589. running configure, to aid debugging if configure makes a mistake.
  590. " 1>&5
  591.  
  592. # Strip out --no-create and --no-recursion so they do not pile up.
  593. # Also quote any args containing shell metacharacters.
  594. ac_configure_args=
  595. for ac_arg
  596. do
  597.   case "$ac_arg" in
  598.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  599.   | --no-cr | --no-c) ;;
  600.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  601.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  602.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  603.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  604.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  605.   esac
  606. done
  607.  
  608. # NLS nuisances.
  609. # Only set these to C if already set.  These must not be set unconditionally
  610. # because not all systems understand e.g. LANG=C (notably SCO).
  611. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  612. # Non-C LC_CTYPE values break the ctype check.
  613. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  614. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  615. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  616. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  617.  
  618. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  619. rm -rf conftest* confdefs.h
  620. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  621. echo > confdefs.h
  622.  
  623. # A filename unique to this package, relative to the directory that
  624. # configure is in, which we can look for to find out if srcdir is correct.
  625. ac_unique_file=src/framing.c
  626.  
  627. # Find the source files, if location was not specified.
  628. if test -z "$srcdir"; then
  629.   ac_srcdir_defaulted=yes
  630.   # Try the directory containing this script, then its parent.
  631.   ac_prog=$0
  632.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  633.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  634.   srcdir=$ac_confdir
  635.   if test ! -r $srcdir/$ac_unique_file; then
  636.     srcdir=..
  637.   fi
  638. else
  639.   ac_srcdir_defaulted=no
  640. fi
  641. if test ! -r $srcdir/$ac_unique_file; then
  642.   if test "$ac_srcdir_defaulted" = yes; then
  643.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  644.   else
  645.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  646.   fi
  647. fi
  648. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  649.  
  650. # Prefer explicitly selected file to automatically selected ones.
  651. if test -z "$CONFIG_SITE"; then
  652.   if test "x$prefix" != xNONE; then
  653.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  654.   else
  655.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  656.   fi
  657. fi
  658. for ac_site_file in $CONFIG_SITE; do
  659.   if test -r "$ac_site_file"; then
  660.     echo "loading site script $ac_site_file"
  661.     . "$ac_site_file"
  662.   fi
  663. done
  664.  
  665. if test -r "$cache_file"; then
  666.   echo "loading cache $cache_file"
  667.   . $cache_file
  668. else
  669.   echo "creating cache $cache_file"
  670.   > $cache_file
  671. fi
  672.  
  673. ac_ext=c
  674. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  675. ac_cpp='$CPP $CPPFLAGS'
  676. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  677. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  678. cross_compiling=$ac_cv_prog_cc_cross
  679.  
  680. ac_exeext=
  681. ac_objext=o
  682. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  683.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  684.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  685.     ac_n= ac_c='
  686. ' ac_t='    '
  687.   else
  688.     ac_n=-n ac_c= ac_t=
  689.   fi
  690. else
  691.   ac_n= ac_c='\c' ac_t=
  692. fi
  693.  
  694.  
  695.  
  696. ac_aux_dir=
  697. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  698.   if test -f $ac_dir/install-sh; then
  699.     ac_aux_dir=$ac_dir
  700.     ac_install_sh="$ac_aux_dir/install-sh -c"
  701.     break
  702.   elif test -f $ac_dir/install.sh; then
  703.     ac_aux_dir=$ac_dir
  704.     ac_install_sh="$ac_aux_dir/install.sh -c"
  705.     break
  706.   fi
  707. done
  708. if test -z "$ac_aux_dir"; then
  709.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  710. fi
  711. ac_config_guess=$ac_aux_dir/config.guess
  712. ac_config_sub=$ac_aux_dir/config.sub
  713. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  714.  
  715. # Find a good install program.  We prefer a C program (faster),
  716. # so one script is as good as another.  But avoid the broken or
  717. # incompatible versions:
  718. # SysV /etc/install, /usr/sbin/install
  719. # SunOS /usr/etc/install
  720. # IRIX /sbin/install
  721. # AIX /bin/install
  722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  725. # ./install, which can be erroneously created by make from ./install.sh.
  726. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  727. echo "configure:728: checking for a BSD compatible install" >&5
  728. if test -z "$INSTALL"; then
  729. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  730.   echo $ac_n "(cached) $ac_c" 1>&6
  731. else
  732.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  733.   for ac_dir in $PATH; do
  734.     # Account for people who put trailing slashes in PATH elements.
  735.     case "$ac_dir/" in
  736.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  737.     *)
  738.       # OSF1 and SCO ODT 3.0 have their own names for install.
  739.       # Don't use installbsd from OSF since it installs stuff as root
  740.       # by default.
  741.       for ac_prog in ginstall scoinst install; do
  742.         if test -f $ac_dir/$ac_prog; then
  743.       if test $ac_prog = install &&
  744.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  745.         # AIX install.  It has an incompatible calling convention.
  746.         :
  747.       else
  748.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  749.         break 2
  750.       fi
  751.     fi
  752.       done
  753.       ;;
  754.     esac
  755.   done
  756.   IFS="$ac_save_IFS"
  757.  
  758. fi
  759.   if test "${ac_cv_path_install+set}" = set; then
  760.     INSTALL="$ac_cv_path_install"
  761.   else
  762.     # As a last resort, use the slow shell script.  We don't cache a
  763.     # path for INSTALL within a source directory, because that will
  764.     # break other packages using the cache if that directory is
  765.     # removed, or if the path is relative.
  766.     INSTALL="$ac_install_sh"
  767.   fi
  768. fi
  769. echo "$ac_t""$INSTALL" 1>&6
  770.  
  771. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  772. # It thinks the first close brace ends the variable substitution.
  773. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  774.  
  775. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  776.  
  777. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  778.  
  779. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  780. echo "configure:781: checking whether build environment is sane" >&5
  781. # Just in case
  782. sleep 1
  783. echo timestamp > conftestfile
  784. # Do `set' in a subshell so we don't clobber the current shell's
  785. # arguments.  Must try -L first in case configure is actually a
  786. # symlink; some systems play weird games with the mod time of symlinks
  787. # (eg FreeBSD returns the mod time of the symlink's containing
  788. # directory).
  789. if (
  790.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  791.    if test "$*" = "X"; then
  792.       # -L didn't work.
  793.       set X `ls -t $srcdir/configure conftestfile`
  794.    fi
  795.    if test "$*" != "X $srcdir/configure conftestfile" \
  796.       && test "$*" != "X conftestfile $srcdir/configure"; then
  797.  
  798.       # If neither matched, then we have a broken ls.  This can happen
  799.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  800.       # broken ls alias from the environment.  This has actually
  801.       # happened.  Such a system could not be considered "sane".
  802.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  803. alias in your environment" 1>&2; exit 1; }
  804.    fi
  805.  
  806.    test "$2" = conftestfile
  807.    )
  808. then
  809.    # Ok.
  810.    :
  811. else
  812.    { echo "configure: error: newly created file is older than distributed files!
  813. Check your system clock" 1>&2; exit 1; }
  814. fi
  815. rm -f conftest*
  816. echo "$ac_t""yes" 1>&6
  817. if test "$program_transform_name" = s,x,x,; then
  818.   program_transform_name=
  819. else
  820.   # Double any \ or $.  echo might interpret backslashes.
  821.   cat <<\EOF_SED > conftestsed
  822. s,\\,\\\\,g; s,\$,$$,g
  823. EOF_SED
  824.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  825.   rm -f conftestsed
  826. fi
  827. test "$program_prefix" != NONE &&
  828.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  829. # Use a double $ so make ignores it.
  830. test "$program_suffix" != NONE &&
  831.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  832.  
  833. # sed with no file args requires a program.
  834. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  835.  
  836. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  837. echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
  838. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  839. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  840.   echo $ac_n "(cached) $ac_c" 1>&6
  841. else
  842.   cat > conftestmake <<\EOF
  843. all:
  844.     @echo 'ac_maketemp="${MAKE}"'
  845. EOF
  846. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  847. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  848. if test -n "$ac_maketemp"; then
  849.   eval ac_cv_prog_make_${ac_make}_set=yes
  850. else
  851.   eval ac_cv_prog_make_${ac_make}_set=no
  852. fi
  853. rm -f conftestmake
  854. fi
  855. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  856.   echo "$ac_t""yes" 1>&6
  857.   SET_MAKE=
  858. else
  859.   echo "$ac_t""no" 1>&6
  860.   SET_MAKE="MAKE=${MAKE-make}"
  861. fi
  862.  
  863.  
  864. PACKAGE=libogg
  865.  
  866. VERSION=1.0rc3
  867.  
  868. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  869.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  870. fi
  871. cat >> confdefs.h <<EOF
  872. #define PACKAGE "$PACKAGE"
  873. EOF
  874.  
  875. cat >> confdefs.h <<EOF
  876. #define VERSION "$VERSION"
  877. EOF
  878.  
  879.  
  880.  
  881. missing_dir=`cd $ac_aux_dir && pwd`
  882. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  883. echo "configure:884: checking for working aclocal" >&5
  884. # Run test in a subshell; some versions of sh will print an error if
  885. # an executable is not found, even if stderr is redirected.
  886. # Redirect stdin to placate older versions of autoconf.  Sigh.
  887. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  888.    ACLOCAL=aclocal
  889.    echo "$ac_t""found" 1>&6
  890. else
  891.    ACLOCAL="$missing_dir/missing aclocal"
  892.    echo "$ac_t""missing" 1>&6
  893. fi
  894.  
  895. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  896. echo "configure:897: checking for working autoconf" >&5
  897. # Run test in a subshell; some versions of sh will print an error if
  898. # an executable is not found, even if stderr is redirected.
  899. # Redirect stdin to placate older versions of autoconf.  Sigh.
  900. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  901.    AUTOCONF=autoconf
  902.    echo "$ac_t""found" 1>&6
  903. else
  904.    AUTOCONF="$missing_dir/missing autoconf"
  905.    echo "$ac_t""missing" 1>&6
  906. fi
  907.  
  908. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  909. echo "configure:910: checking for working automake" >&5
  910. # Run test in a subshell; some versions of sh will print an error if
  911. # an executable is not found, even if stderr is redirected.
  912. # Redirect stdin to placate older versions of autoconf.  Sigh.
  913. if (automake --version) < /dev/null > /dev/null 2>&1; then
  914.    AUTOMAKE=automake
  915.    echo "$ac_t""found" 1>&6
  916. else
  917.    AUTOMAKE="$missing_dir/missing automake"
  918.    echo "$ac_t""missing" 1>&6
  919. fi
  920.  
  921. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  922. echo "configure:923: checking for working autoheader" >&5
  923. # Run test in a subshell; some versions of sh will print an error if
  924. # an executable is not found, even if stderr is redirected.
  925. # Redirect stdin to placate older versions of autoconf.  Sigh.
  926. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  927.    AUTOHEADER=autoheader
  928.    echo "$ac_t""found" 1>&6
  929. else
  930.    AUTOHEADER="$missing_dir/missing autoheader"
  931.    echo "$ac_t""missing" 1>&6
  932. fi
  933.  
  934. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  935. echo "configure:936: checking for working makeinfo" >&5
  936. # Run test in a subshell; some versions of sh will print an error if
  937. # an executable is not found, even if stderr is redirected.
  938. # Redirect stdin to placate older versions of autoconf.  Sigh.
  939. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  940.    MAKEINFO=makeinfo
  941.    echo "$ac_t""found" 1>&6
  942. else
  943.    MAKEINFO="$missing_dir/missing makeinfo"
  944.    echo "$ac_t""missing" 1>&6
  945. fi
  946.  
  947.  
  948.  
  949.  
  950. LIB_CURRENT=3
  951. LIB_REVISION=0
  952. LIB_AGE=3
  953.  
  954.  
  955.  
  956.  
  957. # Extract the first word of "gcc", so it can be a program name with args.
  958. set dummy gcc; ac_word=$2
  959. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  960. echo "configure:961: checking for $ac_word" >&5
  961. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  962.   echo $ac_n "(cached) $ac_c" 1>&6
  963. else
  964.   if test -n "$CC"; then
  965.   ac_cv_prog_CC="$CC" # Let the user override the test.
  966. else
  967.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  968.   ac_dummy="$PATH"
  969.   for ac_dir in $ac_dummy; do
  970.     test -z "$ac_dir" && ac_dir=.
  971.     if test -f $ac_dir/$ac_word; then
  972.       ac_cv_prog_CC="gcc"
  973.       break
  974.     fi
  975.   done
  976.   IFS="$ac_save_ifs"
  977. fi
  978. fi
  979. CC="$ac_cv_prog_CC"
  980. if test -n "$CC"; then
  981.   echo "$ac_t""$CC" 1>&6
  982. else
  983.   echo "$ac_t""no" 1>&6
  984. fi
  985.  
  986. if test -z "$CC"; then
  987.   # Extract the first word of "cc", so it can be a program name with args.
  988. set dummy cc; ac_word=$2
  989. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  990. echo "configure:991: checking for $ac_word" >&5
  991. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  992.   echo $ac_n "(cached) $ac_c" 1>&6
  993. else
  994.   if test -n "$CC"; then
  995.   ac_cv_prog_CC="$CC" # Let the user override the test.
  996. else
  997.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  998.   ac_prog_rejected=no
  999.   ac_dummy="$PATH"
  1000.   for ac_dir in $ac_dummy; do
  1001.     test -z "$ac_dir" && ac_dir=.
  1002.     if test -f $ac_dir/$ac_word; then
  1003.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1004.         ac_prog_rejected=yes
  1005.     continue
  1006.       fi
  1007.       ac_cv_prog_CC="cc"
  1008.       break
  1009.     fi
  1010.   done
  1011.   IFS="$ac_save_ifs"
  1012. if test $ac_prog_rejected = yes; then
  1013.   # We found a bogon in the path, so make sure we never use it.
  1014.   set dummy $ac_cv_prog_CC
  1015.   shift
  1016.   if test $# -gt 0; then
  1017.     # We chose a different compiler from the bogus one.
  1018.     # However, it has the same basename, so the bogon will be chosen
  1019.     # first if we set CC to just the basename; use the full file name.
  1020.     shift
  1021.     set dummy "$ac_dir/$ac_word" "$@"
  1022.     shift
  1023.     ac_cv_prog_CC="$@"
  1024.   fi
  1025. fi
  1026. fi
  1027. fi
  1028. CC="$ac_cv_prog_CC"
  1029. if test -n "$CC"; then
  1030.   echo "$ac_t""$CC" 1>&6
  1031. else
  1032.   echo "$ac_t""no" 1>&6
  1033. fi
  1034.  
  1035.   if test -z "$CC"; then
  1036.     case "`uname -s`" in
  1037.     *win32* | *WIN32*)
  1038.       # Extract the first word of "cl", so it can be a program name with args.
  1039. set dummy cl; ac_word=$2
  1040. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1041. echo "configure:1042: checking for $ac_word" >&5
  1042. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1043.   echo $ac_n "(cached) $ac_c" 1>&6
  1044. else
  1045.   if test -n "$CC"; then
  1046.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1047. else
  1048.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1049.   ac_dummy="$PATH"
  1050.   for ac_dir in $ac_dummy; do
  1051.     test -z "$ac_dir" && ac_dir=.
  1052.     if test -f $ac_dir/$ac_word; then
  1053.       ac_cv_prog_CC="cl"
  1054.       break
  1055.     fi
  1056.   done
  1057.   IFS="$ac_save_ifs"
  1058. fi
  1059. fi
  1060. CC="$ac_cv_prog_CC"
  1061. if test -n "$CC"; then
  1062.   echo "$ac_t""$CC" 1>&6
  1063. else
  1064.   echo "$ac_t""no" 1>&6
  1065. fi
  1066.  ;;
  1067.     esac
  1068.   fi
  1069.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1070. fi
  1071.  
  1072. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1073. echo "configure:1074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1074.  
  1075. ac_ext=c
  1076. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1077. ac_cpp='$CPP $CPPFLAGS'
  1078. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1079. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1080. cross_compiling=$ac_cv_prog_cc_cross
  1081.  
  1082. cat > conftest.$ac_ext << EOF
  1083.  
  1084. #line 1085 "configure"
  1085. #include "confdefs.h"
  1086.  
  1087. main(){return(0);}
  1088. EOF
  1089. if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1090.   ac_cv_prog_cc_works=yes
  1091.   # If we can't run a trivial program, we are probably using a cross compiler.
  1092.   if (./conftest; exit) 2>/dev/null; then
  1093.     ac_cv_prog_cc_cross=no
  1094.   else
  1095.     ac_cv_prog_cc_cross=yes
  1096.   fi
  1097. else
  1098.   echo "configure: failed program was:" >&5
  1099.   cat conftest.$ac_ext >&5
  1100.   ac_cv_prog_cc_works=no
  1101. fi
  1102. rm -fr conftest*
  1103. ac_ext=c
  1104. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1105. ac_cpp='$CPP $CPPFLAGS'
  1106. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1107. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1108. cross_compiling=$ac_cv_prog_cc_cross
  1109.  
  1110. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1111. if test $ac_cv_prog_cc_works = no; then
  1112.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1113. fi
  1114. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1115. echo "configure:1116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1116. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1117. cross_compiling=$ac_cv_prog_cc_cross
  1118.  
  1119. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1120. echo "configure:1121: checking whether we are using GNU C" >&5
  1121. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1122.   echo $ac_n "(cached) $ac_c" 1>&6
  1123. else
  1124.   cat > conftest.c <<EOF
  1125. #ifdef __GNUC__
  1126.   yes;
  1127. #endif
  1128. EOF
  1129. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1130.   ac_cv_prog_gcc=yes
  1131. else
  1132.   ac_cv_prog_gcc=no
  1133. fi
  1134. fi
  1135.  
  1136. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1137.  
  1138. if test $ac_cv_prog_gcc = yes; then
  1139.   GCC=yes
  1140. else
  1141.   GCC=
  1142. fi
  1143.  
  1144. ac_test_CFLAGS="${CFLAGS+set}"
  1145. ac_save_CFLAGS="$CFLAGS"
  1146. CFLAGS=
  1147. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1148. echo "configure:1149: checking whether ${CC-cc} accepts -g" >&5
  1149. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1150.   echo $ac_n "(cached) $ac_c" 1>&6
  1151. else
  1152.   echo 'void f(){}' > conftest.c
  1153. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1154.   ac_cv_prog_cc_g=yes
  1155. else
  1156.   ac_cv_prog_cc_g=no
  1157. fi
  1158. rm -f conftest*
  1159.  
  1160. fi
  1161.  
  1162. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1163. if test "$ac_test_CFLAGS" = set; then
  1164.   CFLAGS="$ac_save_CFLAGS"
  1165. elif test $ac_cv_prog_cc_g = yes; then
  1166.   if test "$GCC" = yes; then
  1167.     CFLAGS="-g -O2"
  1168.   else
  1169.     CFLAGS="-g"
  1170.   fi
  1171. else
  1172.   if test "$GCC" = yes; then
  1173.     CFLAGS="-O2"
  1174.   else
  1175.     CFLAGS=
  1176.   fi
  1177. fi
  1178.  
  1179. # Find the correct PATH separator.  Usually this is `:', but
  1180. # DJGPP uses `;' like DOS.
  1181. if test "X${PATH_SEPARATOR+set}" != Xset; then
  1182.   UNAME=${UNAME-`uname 2>/dev/null`}
  1183.   case X$UNAME in
  1184.     *-DOS) lt_cv_sys_path_separator=';' ;;
  1185.     *)     lt_cv_sys_path_separator=':' ;;
  1186.   esac
  1187.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  1188. fi
  1189.  
  1190. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1191. echo "configure:1192: checking for Cygwin environment" >&5
  1192. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1193.   echo $ac_n "(cached) $ac_c" 1>&6
  1194. else
  1195.   cat > conftest.$ac_ext <<EOF
  1196. #line 1197 "configure"
  1197. #include "confdefs.h"
  1198.  
  1199. int main() {
  1200.  
  1201. #ifndef __CYGWIN__
  1202. #define __CYGWIN__ __CYGWIN32__
  1203. #endif
  1204. return __CYGWIN__;
  1205. ; return 0; }
  1206. EOF
  1207. if { (eval echo configure:1208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1208.   rm -rf conftest*
  1209.   ac_cv_cygwin=yes
  1210. else
  1211.   echo "configure: failed program was:" >&5
  1212.   cat conftest.$ac_ext >&5
  1213.   rm -rf conftest*
  1214.   ac_cv_cygwin=no
  1215. fi
  1216. rm -f conftest*
  1217. rm -f conftest*
  1218. fi
  1219.  
  1220. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1221. CYGWIN=
  1222. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1223. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1224. echo "configure:1225: checking for mingw32 environment" >&5
  1225. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1226.   echo $ac_n "(cached) $ac_c" 1>&6
  1227. else
  1228.   cat > conftest.$ac_ext <<EOF
  1229. #line 1230 "configure"
  1230. #include "confdefs.h"
  1231.  
  1232. int main() {
  1233. return __MINGW32__;
  1234. ; return 0; }
  1235. EOF
  1236. if { (eval echo configure:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1237.   rm -rf conftest*
  1238.   ac_cv_mingw32=yes
  1239. else
  1240.   echo "configure: failed program was:" >&5
  1241.   cat conftest.$ac_ext >&5
  1242.   rm -rf conftest*
  1243.   ac_cv_mingw32=no
  1244. fi
  1245. rm -f conftest*
  1246. rm -f conftest*
  1247. fi
  1248.  
  1249. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1250. MINGW32=
  1251. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1252. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1253. echo "configure:1254: checking how to run the C preprocessor" >&5
  1254. # On Suns, sometimes $CPP names a directory.
  1255. if test -n "$CPP" && test -d "$CPP"; then
  1256.   CPP=
  1257. fi
  1258. if test -z "$CPP"; then
  1259. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1260.   echo $ac_n "(cached) $ac_c" 1>&6
  1261. else
  1262.     # This must be in double quotes, not single quotes, because CPP may get
  1263.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1264.   CPP="${CC-cc} -E"
  1265.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1266.   # not just through cpp.
  1267.   cat > conftest.$ac_ext <<EOF
  1268. #line 1269 "configure"
  1269. #include "confdefs.h"
  1270. #include <assert.h>
  1271. Syntax Error
  1272. EOF
  1273. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1274. { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1275. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1276. if test -z "$ac_err"; then
  1277.   :
  1278. else
  1279.   echo "$ac_err" >&5
  1280.   echo "configure: failed program was:" >&5
  1281.   cat conftest.$ac_ext >&5
  1282.   rm -rf conftest*
  1283.   CPP="${CC-cc} -E -traditional-cpp"
  1284.   cat > conftest.$ac_ext <<EOF
  1285. #line 1286 "configure"
  1286. #include "confdefs.h"
  1287. #include <assert.h>
  1288. Syntax Error
  1289. EOF
  1290. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1291. { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1292. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1293. if test -z "$ac_err"; then
  1294.   :
  1295. else
  1296.   echo "$ac_err" >&5
  1297.   echo "configure: failed program was:" >&5
  1298.   cat conftest.$ac_ext >&5
  1299.   rm -rf conftest*
  1300.   CPP="${CC-cc} -nologo -E"
  1301.   cat > conftest.$ac_ext <<EOF
  1302. #line 1303 "configure"
  1303. #include "confdefs.h"
  1304. #include <assert.h>
  1305. Syntax Error
  1306. EOF
  1307. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1308. { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1309. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1310. if test -z "$ac_err"; then
  1311.   :
  1312. else
  1313.   echo "$ac_err" >&5
  1314.   echo "configure: failed program was:" >&5
  1315.   cat conftest.$ac_ext >&5
  1316.   rm -rf conftest*
  1317.   CPP=/lib/cpp
  1318. fi
  1319. rm -f conftest*
  1320. fi
  1321. rm -f conftest*
  1322. fi
  1323. rm -f conftest*
  1324.   ac_cv_prog_CPP="$CPP"
  1325. fi
  1326.   CPP="$ac_cv_prog_CPP"
  1327. else
  1328.   ac_cv_prog_CPP="$CPP"
  1329. fi
  1330. echo "$ac_t""$CPP" 1>&6
  1331.  
  1332. # Check whether --enable-shared or --disable-shared was given.
  1333. if test "${enable_shared+set}" = set; then
  1334.   enableval="$enable_shared"
  1335.   p=${PACKAGE-default}
  1336. case $enableval in
  1337. yes) enable_shared=yes ;;
  1338. no) enable_shared=no ;;
  1339. *)
  1340.   enable_shared=no
  1341.   # Look at the argument we got.  We use all the common list separators.
  1342.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1343.   for pkg in $enableval; do
  1344.     if test "X$pkg" = "X$p"; then
  1345.       enable_shared=yes
  1346.     fi
  1347.   done
  1348.   IFS="$ac_save_ifs"
  1349.   ;;
  1350. esac
  1351. else
  1352.   enable_shared=yes
  1353. fi
  1354.  
  1355. # Check whether --enable-static or --disable-static was given.
  1356. if test "${enable_static+set}" = set; then
  1357.   enableval="$enable_static"
  1358.   p=${PACKAGE-default}
  1359. case $enableval in
  1360. yes) enable_static=yes ;;
  1361. no) enable_static=no ;;
  1362. *)
  1363.   enable_static=no
  1364.   # Look at the argument we got.  We use all the common list separators.
  1365.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1366.   for pkg in $enableval; do
  1367.     if test "X$pkg" = "X$p"; then
  1368.       enable_static=yes
  1369.     fi
  1370.   done
  1371.   IFS="$ac_save_ifs"
  1372.   ;;
  1373. esac
  1374. else
  1375.   enable_static=yes
  1376. fi
  1377.  
  1378. # Check whether --enable-fast-install or --disable-fast-install was given.
  1379. if test "${enable_fast_install+set}" = set; then
  1380.   enableval="$enable_fast_install"
  1381.   p=${PACKAGE-default}
  1382. case $enableval in
  1383. yes) enable_fast_install=yes ;;
  1384. no) enable_fast_install=no ;;
  1385. *)
  1386.   enable_fast_install=no
  1387.   # Look at the argument we got.  We use all the common list separators.
  1388.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1389.   for pkg in $enableval; do
  1390.     if test "X$pkg" = "X$p"; then
  1391.       enable_fast_install=yes
  1392.     fi
  1393.   done
  1394.   IFS="$ac_save_ifs"
  1395.   ;;
  1396. esac
  1397. else
  1398.   enable_fast_install=yes
  1399. fi
  1400.  
  1401.  
  1402. # Make sure we can run config.sub.
  1403. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1404. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1405. fi
  1406.  
  1407. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1408. echo "configure:1409: checking host system type" >&5
  1409.  
  1410. host_alias=$host
  1411. case "$host_alias" in
  1412. NONE)
  1413.   case $nonopt in
  1414.   NONE)
  1415.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1416.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1417.     fi ;;
  1418.   *) host_alias=$nonopt ;;
  1419.   esac ;;
  1420. esac
  1421.  
  1422. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1423. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1424. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1425. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1426. echo "$ac_t""$host" 1>&6
  1427.  
  1428. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1429. echo "configure:1430: checking build system type" >&5
  1430.  
  1431. build_alias=$build
  1432. case "$build_alias" in
  1433. NONE)
  1434.   case $nonopt in
  1435.   NONE) build_alias=$host_alias ;;
  1436.   *) build_alias=$nonopt ;;
  1437.   esac ;;
  1438. esac
  1439.  
  1440. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1441. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1442. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1443. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1444. echo "$ac_t""$build" 1>&6
  1445.  
  1446. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1447. if test "${with_gnu_ld+set}" = set; then
  1448.   withval="$with_gnu_ld"
  1449.   test "$withval" = no || with_gnu_ld=yes
  1450. else
  1451.   with_gnu_ld=no
  1452. fi
  1453.  
  1454. ac_prog=ld
  1455. if test "$GCC" = yes; then
  1456.   # Check if gcc -print-prog-name=ld gives a path.
  1457.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1458. echo "configure:1459: checking for ld used by GCC" >&5
  1459.   case $host in
  1460.   *-*-mingw*)
  1461.     # gcc leaves a trailing carriage return which upsets mingw
  1462.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1463.   *)
  1464.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1465.   esac
  1466.   case $ac_prog in
  1467.     # Accept absolute paths.
  1468.     [\\/]* | [A-Za-z]:[\\/]*)
  1469.       re_direlt='/[^/][^/]*/\.\./'
  1470.       # Canonicalize the path of ld
  1471.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1472.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1473.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1474.       done
  1475.       test -z "$LD" && LD="$ac_prog"
  1476.       ;;
  1477.   "")
  1478.     # If it fails, then pretend we aren't using GCC.
  1479.     ac_prog=ld
  1480.     ;;
  1481.   *)
  1482.     # If it is relative, then search for the first ld in PATH.
  1483.     with_gnu_ld=unknown
  1484.     ;;
  1485.   esac
  1486. elif test "$with_gnu_ld" = yes; then
  1487.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1488. echo "configure:1489: checking for GNU ld" >&5
  1489. else
  1490.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1491. echo "configure:1492: checking for non-GNU ld" >&5
  1492. fi
  1493. if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  1494.   echo $ac_n "(cached) $ac_c" 1>&6
  1495. else
  1496.   if test -z "$LD"; then
  1497.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1498.   for ac_dir in $PATH; do
  1499.     test -z "$ac_dir" && ac_dir=.
  1500.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1501.       lt_cv_path_LD="$ac_dir/$ac_prog"
  1502.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1503.       # but apparently some GNU ld's only accept -v.
  1504.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1505.       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1506.     test "$with_gnu_ld" != no && break
  1507.       else
  1508.     test "$with_gnu_ld" != yes && break
  1509.       fi
  1510.     fi
  1511.   done
  1512.   IFS="$ac_save_ifs"
  1513. else
  1514.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1515. fi
  1516. fi
  1517.  
  1518. LD="$lt_cv_path_LD"
  1519. if test -n "$LD"; then
  1520.   echo "$ac_t""$LD" 1>&6
  1521. else
  1522.   echo "$ac_t""no" 1>&6
  1523. fi
  1524. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1525. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1526. echo "configure:1527: checking if the linker ($LD) is GNU ld" >&5
  1527. if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  1528.   echo $ac_n "(cached) $ac_c" 1>&6
  1529. else
  1530.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1531. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1532.   lt_cv_prog_gnu_ld=yes
  1533. else
  1534.   lt_cv_prog_gnu_ld=no
  1535. fi
  1536. fi
  1537.  
  1538. echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  1539. with_gnu_ld=$lt_cv_prog_gnu_ld
  1540.  
  1541.  
  1542. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1543. echo "configure:1544: checking for $LD option to reload object files" >&5
  1544. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1545.   echo $ac_n "(cached) $ac_c" 1>&6
  1546. else
  1547.   lt_cv_ld_reload_flag='-r'
  1548. fi
  1549.  
  1550. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1551. reload_flag=$lt_cv_ld_reload_flag
  1552. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1553.  
  1554. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1555. echo "configure:1556: checking for BSD-compatible nm" >&5
  1556. if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  1557.   echo $ac_n "(cached) $ac_c" 1>&6
  1558. else
  1559.   if test -n "$NM"; then
  1560.   # Let the user override the test.
  1561.   lt_cv_path_NM="$NM"
  1562. else
  1563.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1564.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1565.     test -z "$ac_dir" && ac_dir=.
  1566.     tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1567.     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  1568.       # Check to see if the nm accepts a BSD-compat flag.
  1569.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1570.       #   nm: unknown option "B" ignored
  1571.       # Tru64's nm complains that /dev/null is an invalid object file
  1572.       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  1573.     lt_cv_path_NM="$tmp_nm -B"
  1574.     break
  1575.       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1576.     lt_cv_path_NM="$tmp_nm -p"
  1577.     break
  1578.       else
  1579.     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1580.     continue # so that we can try to find one that supports BSD flags
  1581.       fi
  1582.     fi
  1583.   done
  1584.   IFS="$ac_save_ifs"
  1585.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1586. fi
  1587. fi
  1588.  
  1589. NM="$lt_cv_path_NM"
  1590. echo "$ac_t""$NM" 1>&6
  1591.  
  1592. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1593. echo "configure:1594: checking whether ln -s works" >&5
  1594. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1595.   echo $ac_n "(cached) $ac_c" 1>&6
  1596. else
  1597.   rm -f conftestdata
  1598. if ln -s X conftestdata 2>/dev/null
  1599. then
  1600.   rm -f conftestdata
  1601.   ac_cv_prog_LN_S="ln -s"
  1602. else
  1603.   ac_cv_prog_LN_S=ln
  1604. fi
  1605. fi
  1606. LN_S="$ac_cv_prog_LN_S"
  1607. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1608.   echo "$ac_t""yes" 1>&6
  1609. else
  1610.   echo "$ac_t""no" 1>&6
  1611. fi
  1612.  
  1613. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  1614. echo "configure:1615: checking how to recognise dependant libraries" >&5
  1615. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1616.   echo $ac_n "(cached) $ac_c" 1>&6
  1617. else
  1618.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  1619. lt_cv_file_magic_test_file=
  1620. lt_cv_deplibs_check_method='unknown'
  1621. # Need to set the preceding variable on all platforms that support
  1622. # interlibrary dependencies.
  1623. # 'none' -- dependencies not supported.
  1624. # `unknown' -- same as none, but documents that we really don't know.
  1625. # 'pass_all' -- all dependencies passed with no checks.
  1626. # 'test_compile' -- check by making test program.
  1627. # 'file_magic [[regex]]' -- check by looking for files in library path
  1628. # which responds to the $file_magic_cmd with a given egrep regex.
  1629. # If you have `file' or equivalent on your system and you're not sure
  1630. # whether `pass_all' will *always* work, you probably want this one.
  1631.  
  1632. case $host_os in
  1633. aix4* | aix5*)
  1634.   lt_cv_deplibs_check_method=pass_all
  1635.   ;;
  1636.  
  1637. beos*)
  1638.   lt_cv_deplibs_check_method=pass_all
  1639.   ;;
  1640.  
  1641. bsdi4*)
  1642.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1643.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  1644.   lt_cv_file_magic_test_file=/shlib/libc.so
  1645.   ;;
  1646.  
  1647. cygwin* | mingw* | pw32*)
  1648.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1649.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  1650.   ;;
  1651.  
  1652. darwin* | rhapsody*)
  1653.   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1654.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  1655.   case "$host_os" in
  1656.   rhapsody* | darwin1.[012])
  1657.     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  1658.     ;;
  1659.   *) # Darwin 1.3 on
  1660.     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  1661.     ;;
  1662.   esac
  1663.   ;;
  1664.  
  1665. freebsd*)
  1666.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1667.     case $host_cpu in
  1668.     i*86 )
  1669.       # Not sure whether the presence of OpenBSD here was a mistake.
  1670.       # Let's accept both of them until this is cleared up.
  1671.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  1672.       lt_cv_file_magic_cmd=/usr/bin/file
  1673.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1674.       ;;
  1675.     esac
  1676.   else
  1677.     lt_cv_deplibs_check_method=pass_all
  1678.   fi
  1679.   ;;
  1680.  
  1681. gnu*)
  1682.   lt_cv_deplibs_check_method=pass_all
  1683.   ;;
  1684.  
  1685. hpux10.20*|hpux11*)
  1686.   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  1687.   lt_cv_file_magic_cmd=/usr/bin/file
  1688.   lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1689.   ;;
  1690.  
  1691. irix5* | irix6* | nonstopux*)
  1692.   case $host_os in
  1693.   irix5* | nonstopux*)
  1694.     # this will be overridden with pass_all, but let us keep it just in case
  1695.     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1696.     ;;
  1697.   *)
  1698.     case $LD in
  1699.     *-32|*"-32 ") libmagic=32-bit;;
  1700.     *-n32|*"-n32 ") libmagic=N32;;
  1701.     *-64|*"-64 ") libmagic=64-bit;;
  1702.     *) libmagic=never-match;;
  1703.     esac
  1704.     # this will be overridden with pass_all, but let us keep it just in case
  1705.     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1706.     ;;
  1707.   esac
  1708.   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1709.   lt_cv_deplibs_check_method=pass_all
  1710.   ;;
  1711.  
  1712. # This must be Linux ELF.
  1713. linux-gnu*)
  1714.   case $host_cpu in
  1715.   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
  1716.     lt_cv_deplibs_check_method=pass_all ;;
  1717.   *)
  1718.     # glibc up to 2.1.1 does not perform some relocations on ARM
  1719.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  1720.   esac
  1721.   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1722.   ;;
  1723.  
  1724. netbsd*)
  1725.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1726.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  1727.   else
  1728.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  1729.   fi
  1730.   ;;
  1731.  
  1732. newos6*)
  1733.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  1734.   lt_cv_file_magic_cmd=/usr/bin/file
  1735.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1736.   ;;
  1737.  
  1738. openbsd*)
  1739.   lt_cv_file_magic_cmd=/usr/bin/file
  1740.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1741.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1742.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  1743.   else
  1744.     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1745.   fi
  1746.   ;;
  1747.  
  1748. osf3* | osf4* | osf5*)
  1749.   # this will be overridden with pass_all, but let us keep it just in case
  1750.   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1751.   lt_cv_file_magic_test_file=/shlib/libc.so
  1752.   lt_cv_deplibs_check_method=pass_all
  1753.   ;;
  1754.  
  1755. sco3.2v5*)
  1756.   lt_cv_deplibs_check_method=pass_all
  1757.   ;;
  1758.  
  1759. solaris*)
  1760.   lt_cv_deplibs_check_method=pass_all
  1761.   lt_cv_file_magic_test_file=/lib/libc.so
  1762.   ;;
  1763.  
  1764. sysv5uw[78]* | sysv4*uw2*)
  1765.   lt_cv_deplibs_check_method=pass_all
  1766.   ;;
  1767.  
  1768. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1769.   case $host_vendor in
  1770.   motorola)
  1771.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  1772.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1773.     ;;
  1774.   ncr)
  1775.     lt_cv_deplibs_check_method=pass_all
  1776.     ;;
  1777.   sequent)
  1778.     lt_cv_file_magic_cmd='/bin/file'
  1779.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1780.     ;;
  1781.   sni)
  1782.     lt_cv_file_magic_cmd='/bin/file'
  1783.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  1784.     lt_cv_file_magic_test_file=/lib/libc.so
  1785.     ;;
  1786.   esac
  1787.   ;;
  1788. esac
  1789.  
  1790. fi
  1791.  
  1792. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  1793. file_magic_cmd=$lt_cv_file_magic_cmd
  1794. deplibs_check_method=$lt_cv_deplibs_check_method
  1795.  
  1796. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1797. echo "configure:1798: checking for object suffix" >&5
  1798. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1799.   echo $ac_n "(cached) $ac_c" 1>&6
  1800. else
  1801.   rm -f conftest*
  1802. echo 'int i = 1;' > conftest.$ac_ext
  1803. if { (eval echo configure:1804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1804.   for ac_file in conftest.*; do
  1805.     case $ac_file in
  1806.     *.c) ;;
  1807.     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1808.     esac
  1809.   done
  1810. else
  1811.   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1812. fi
  1813. rm -f conftest*
  1814. fi
  1815.  
  1816. echo "$ac_t""$ac_cv_objext" 1>&6
  1817. OBJEXT=$ac_cv_objext
  1818. ac_objext=$ac_cv_objext
  1819.  
  1820.  
  1821.  
  1822. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1823. echo "configure:1824: checking for executable suffix" >&5
  1824. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1825.   echo $ac_n "(cached) $ac_c" 1>&6
  1826. else
  1827.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1828.   ac_cv_exeext=.exe
  1829. else
  1830.   rm -f conftest*
  1831.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1832.   ac_cv_exeext=
  1833.   if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1834.     for file in conftest.*; do
  1835.       case $file in
  1836.       *.c | *.o | *.obj) ;;
  1837.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1838.       esac
  1839.     done
  1840.   else
  1841.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1842.   fi
  1843.   rm -f conftest*
  1844.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1845. fi
  1846. fi
  1847.  
  1848. EXEEXT=""
  1849. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1850. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1851. ac_exeext=$EXEEXT
  1852.  
  1853. if test $host != $build; then
  1854.   ac_tool_prefix=${host_alias}-
  1855. else
  1856.   ac_tool_prefix=
  1857. fi
  1858.  
  1859.  
  1860.  
  1861.  
  1862. # Check for command to grab the raw symbol name followed by C symbol from nm.
  1863. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  1864. echo "configure:1865: checking command to parse $NM output" >&5
  1865. if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  1866.   echo $ac_n "(cached) $ac_c" 1>&6
  1867. else
  1868.   
  1869. # These are sane defaults that work on at least a few old systems.
  1870. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  1871.  
  1872. # Character class describing NM global symbol codes.
  1873. symcode='[BCDEGRST]'
  1874.  
  1875. # Regexp to match symbols that can be accessed directly from C.
  1876. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1877.  
  1878. # Transform the above into a raw symbol and a C symbol.
  1879. symxfrm='\1 \2\3 \3'
  1880.  
  1881. # Transform an extracted symbol line into a proper C declaration
  1882. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1883.  
  1884. # Transform an extracted symbol line into symbol name and symbol address
  1885. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1886.  
  1887. # Define system-specific variables.
  1888. case $host_os in
  1889. aix*)
  1890.   symcode='[BCDT]'
  1891.   ;;
  1892. cygwin* | mingw* | pw32*)
  1893.   symcode='[ABCDGISTW]'
  1894.   ;;
  1895. hpux*) # Its linker distinguishes data from code symbols
  1896.   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1897.   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1898.   ;;
  1899. irix* | nonstopux*)
  1900.   symcode='[BCDEGRST]'
  1901.   ;;
  1902. solaris* | sysv5*)
  1903.   symcode='[BDT]'
  1904.   ;;
  1905. sysv4)
  1906.   symcode='[DFNSTU]'
  1907.   ;;
  1908. esac
  1909.  
  1910. # Handle CRLF in mingw tool chain
  1911. opt_cr=
  1912. case $host_os in
  1913. mingw*)
  1914.   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1915.   ;;
  1916. esac
  1917.  
  1918. # If we're using GNU nm, then use its standard symbol codes.
  1919. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1920.   symcode='[ABCDGISTW]'
  1921. fi
  1922.  
  1923. # Try without a prefix undercore, then with it.
  1924. for ac_symprfx in "" "_"; do
  1925.  
  1926.   # Write the raw and C identifiers.
  1927. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][     ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1928.  
  1929.   # Check to see that the pipe works correctly.
  1930.   pipe_works=no
  1931.   rm -f conftest*
  1932.   cat > conftest.$ac_ext <<EOF
  1933. #ifdef __cplusplus
  1934. extern "C" {
  1935. #endif
  1936. char nm_test_var;
  1937. void nm_test_func(){}
  1938. #ifdef __cplusplus
  1939. }
  1940. #endif
  1941. int main(){nm_test_var='a';nm_test_func();return(0);}
  1942. EOF
  1943.  
  1944.   if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1945.     # Now try to grab the symbols.
  1946.     nlist=conftest.nm
  1947.     if { (eval echo configure:1948: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
  1948.       # Try sorting and uniquifying the output.
  1949.       if sort "$nlist" | uniq > "$nlist"T; then
  1950.     mv -f "$nlist"T "$nlist"
  1951.       else
  1952.     rm -f "$nlist"T
  1953.       fi
  1954.  
  1955.       # Make sure that we snagged all the symbols we need.
  1956.       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1957.     if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1958.       cat <<EOF > conftest.$ac_ext
  1959. #ifdef __cplusplus
  1960. extern "C" {
  1961. #endif
  1962.  
  1963. EOF
  1964.       # Now generate the symbol file.
  1965.       eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1966.  
  1967.       cat <<EOF >> conftest.$ac_ext
  1968. #if defined (__STDC__) && __STDC__
  1969. # define lt_ptr void *
  1970. #else
  1971. # define lt_ptr char *
  1972. # define const
  1973. #endif
  1974.  
  1975. /* The mapping between symbol names and symbols. */
  1976. const struct {
  1977.   const char *name;
  1978.   lt_ptr address;
  1979. }
  1980. lt_preloaded_symbols[] =
  1981. {
  1982. EOF
  1983.       sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  1984.       cat <<\EOF >> conftest.$ac_ext
  1985.   {0, (lt_ptr) 0}
  1986. };
  1987.  
  1988. #ifdef __cplusplus
  1989. }
  1990. #endif
  1991. EOF
  1992.       # Now try linking the two files.
  1993.       mv conftest.$ac_objext conftstm.$ac_objext
  1994.       save_LIBS="$LIBS"
  1995.       save_CFLAGS="$CFLAGS"
  1996.       LIBS="conftstm.$ac_objext"
  1997.       CFLAGS="$CFLAGS$no_builtin_flag"
  1998.       if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1999.         pipe_works=yes
  2000.       fi
  2001.       LIBS="$save_LIBS"
  2002.       CFLAGS="$save_CFLAGS"
  2003.     else
  2004.       echo "cannot find nm_test_func in $nlist" >&5
  2005.     fi
  2006.       else
  2007.     echo "cannot find nm_test_var in $nlist" >&5
  2008.       fi
  2009.     else
  2010.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  2011.     fi
  2012.   else
  2013.     echo "$progname: failed program was:" >&5
  2014.     cat conftest.$ac_ext >&5
  2015.   fi
  2016.   rm -f conftest* conftst*
  2017.  
  2018.   # Do not use the global_symbol_pipe unless it works.
  2019.   if test "$pipe_works" = yes; then
  2020.     break
  2021.   else
  2022.     lt_cv_sys_global_symbol_pipe=
  2023.   fi
  2024. done
  2025.  
  2026. fi
  2027.  
  2028. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  2029. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  2030.   global_symbol_to_cdecl=
  2031.   global_symbol_to_c_name_address=
  2032. else
  2033.   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  2034.   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  2035. fi
  2036. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  2037. then
  2038.   echo "$ac_t""failed" 1>&6
  2039. else
  2040.   echo "$ac_t""ok" 1>&6
  2041. fi
  2042.  
  2043. for ac_hdr in dlfcn.h
  2044. do
  2045. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2046. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2047. echo "configure:2048: checking for $ac_hdr" >&5
  2048. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2049.   echo $ac_n "(cached) $ac_c" 1>&6
  2050. else
  2051.   cat > conftest.$ac_ext <<EOF
  2052. #line 2053 "configure"
  2053. #include "confdefs.h"
  2054. #include <$ac_hdr>
  2055. EOF
  2056. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2057. { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2058. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2059. if test -z "$ac_err"; then
  2060.   rm -rf conftest*
  2061.   eval "ac_cv_header_$ac_safe=yes"
  2062. else
  2063.   echo "$ac_err" >&5
  2064.   echo "configure: failed program was:" >&5
  2065.   cat conftest.$ac_ext >&5
  2066.   rm -rf conftest*
  2067.   eval "ac_cv_header_$ac_safe=no"
  2068. fi
  2069. rm -f conftest*
  2070. fi
  2071. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2072.   echo "$ac_t""yes" 1>&6
  2073.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2074.   cat >> confdefs.h <<EOF
  2075. #define $ac_tr_hdr 1
  2076. EOF
  2077.  
  2078. else
  2079.   echo "$ac_t""no" 1>&6
  2080. fi
  2081. done
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087. # Only perform the check for file, if the check method requires it
  2088. case $deplibs_check_method in
  2089. file_magic*)
  2090.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  2091.     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  2092. echo "configure:2093: checking for ${ac_tool_prefix}file" >&5
  2093. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2094.   echo $ac_n "(cached) $ac_c" 1>&6
  2095. else
  2096.   case $MAGIC_CMD in
  2097.   /*)
  2098.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2099.   ;;
  2100.   ?:/*)
  2101.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2102.   ;;
  2103.   *)
  2104.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2105.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2106.   ac_dummy="/usr/bin:$PATH"
  2107.   for ac_dir in $ac_dummy; do
  2108.     test -z "$ac_dir" && ac_dir=.
  2109.     if test -f $ac_dir/${ac_tool_prefix}file; then
  2110.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  2111.       if test -n "$file_magic_test_file"; then
  2112.     case $deplibs_check_method in
  2113.     "file_magic "*)
  2114.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2115.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2116.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2117.         egrep "$file_magic_regex" > /dev/null; then
  2118.         :
  2119.       else
  2120.         cat <<EOF 1>&2
  2121.  
  2122. *** Warning: the command libtool uses to detect shared libraries,
  2123. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2124. *** The result is that libtool may fail to recognize shared libraries
  2125. *** as such.  This will affect the creation of libtool libraries that
  2126. *** depend on shared libraries, but programs linked with such libtool
  2127. *** libraries will work regardless of this problem.  Nevertheless, you
  2128. *** may want to report the problem to your system manager and/or to
  2129. *** bug-libtool@gnu.org
  2130.  
  2131. EOF
  2132.       fi ;;
  2133.     esac
  2134.       fi
  2135.       break
  2136.     fi
  2137.   done
  2138.   IFS="$ac_save_ifs"
  2139.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2140.   ;;
  2141. esac
  2142. fi
  2143.  
  2144. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2145. if test -n "$MAGIC_CMD"; then
  2146.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2147. else
  2148.   echo "$ac_t""no" 1>&6
  2149. fi
  2150.  
  2151. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2152.   if test -n "$ac_tool_prefix"; then
  2153.     echo $ac_n "checking for file""... $ac_c" 1>&6
  2154. echo "configure:2155: checking for file" >&5
  2155. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2156.   echo $ac_n "(cached) $ac_c" 1>&6
  2157. else
  2158.   case $MAGIC_CMD in
  2159.   /*)
  2160.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2161.   ;;
  2162.   ?:/*)
  2163.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2164.   ;;
  2165.   *)
  2166.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2167.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2168.   ac_dummy="/usr/bin:$PATH"
  2169.   for ac_dir in $ac_dummy; do
  2170.     test -z "$ac_dir" && ac_dir=.
  2171.     if test -f $ac_dir/file; then
  2172.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  2173.       if test -n "$file_magic_test_file"; then
  2174.     case $deplibs_check_method in
  2175.     "file_magic "*)
  2176.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2177.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2178.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2179.         egrep "$file_magic_regex" > /dev/null; then
  2180.         :
  2181.       else
  2182.         cat <<EOF 1>&2
  2183.  
  2184. *** Warning: the command libtool uses to detect shared libraries,
  2185. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2186. *** The result is that libtool may fail to recognize shared libraries
  2187. *** as such.  This will affect the creation of libtool libraries that
  2188. *** depend on shared libraries, but programs linked with such libtool
  2189. *** libraries will work regardless of this problem.  Nevertheless, you
  2190. *** may want to report the problem to your system manager and/or to
  2191. *** bug-libtool@gnu.org
  2192.  
  2193. EOF
  2194.       fi ;;
  2195.     esac
  2196.       fi
  2197.       break
  2198.     fi
  2199.   done
  2200.   IFS="$ac_save_ifs"
  2201.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2202.   ;;
  2203. esac
  2204. fi
  2205.  
  2206. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2207. if test -n "$MAGIC_CMD"; then
  2208.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2209. else
  2210.   echo "$ac_t""no" 1>&6
  2211. fi
  2212.  
  2213.   else
  2214.     MAGIC_CMD=:
  2215.   fi
  2216. fi
  2217.  
  2218.   fi
  2219.   ;;
  2220. esac
  2221.  
  2222. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2223. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2224. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2225. echo "configure:2226: checking for $ac_word" >&5
  2226. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2227.   echo $ac_n "(cached) $ac_c" 1>&6
  2228. else
  2229.   if test -n "$RANLIB"; then
  2230.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2231. else
  2232.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2233.   ac_dummy="$PATH"
  2234.   for ac_dir in $ac_dummy; do
  2235.     test -z "$ac_dir" && ac_dir=.
  2236.     if test -f $ac_dir/$ac_word; then
  2237.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2238.       break
  2239.     fi
  2240.   done
  2241.   IFS="$ac_save_ifs"
  2242. fi
  2243. fi
  2244. RANLIB="$ac_cv_prog_RANLIB"
  2245. if test -n "$RANLIB"; then
  2246.   echo "$ac_t""$RANLIB" 1>&6
  2247. else
  2248.   echo "$ac_t""no" 1>&6
  2249. fi
  2250.  
  2251.  
  2252. if test -z "$ac_cv_prog_RANLIB"; then
  2253. if test -n "$ac_tool_prefix"; then
  2254.   # Extract the first word of "ranlib", so it can be a program name with args.
  2255. set dummy ranlib; ac_word=$2
  2256. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2257. echo "configure:2258: checking for $ac_word" >&5
  2258. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2259.   echo $ac_n "(cached) $ac_c" 1>&6
  2260. else
  2261.   if test -n "$RANLIB"; then
  2262.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2263. else
  2264.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2265.   ac_dummy="$PATH"
  2266.   for ac_dir in $ac_dummy; do
  2267.     test -z "$ac_dir" && ac_dir=.
  2268.     if test -f $ac_dir/$ac_word; then
  2269.       ac_cv_prog_RANLIB="ranlib"
  2270.       break
  2271.     fi
  2272.   done
  2273.   IFS="$ac_save_ifs"
  2274.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2275. fi
  2276. fi
  2277. RANLIB="$ac_cv_prog_RANLIB"
  2278. if test -n "$RANLIB"; then
  2279.   echo "$ac_t""$RANLIB" 1>&6
  2280. else
  2281.   echo "$ac_t""no" 1>&6
  2282. fi
  2283.  
  2284. else
  2285.   RANLIB=":"
  2286. fi
  2287. fi
  2288.  
  2289. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2290. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2291. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2292. echo "configure:2293: checking for $ac_word" >&5
  2293. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2294.   echo $ac_n "(cached) $ac_c" 1>&6
  2295. else
  2296.   if test -n "$STRIP"; then
  2297.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2298. else
  2299.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2300.   ac_dummy="$PATH"
  2301.   for ac_dir in $ac_dummy; do
  2302.     test -z "$ac_dir" && ac_dir=.
  2303.     if test -f $ac_dir/$ac_word; then
  2304.       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2305.       break
  2306.     fi
  2307.   done
  2308.   IFS="$ac_save_ifs"
  2309. fi
  2310. fi
  2311. STRIP="$ac_cv_prog_STRIP"
  2312. if test -n "$STRIP"; then
  2313.   echo "$ac_t""$STRIP" 1>&6
  2314. else
  2315.   echo "$ac_t""no" 1>&6
  2316. fi
  2317.  
  2318.  
  2319. if test -z "$ac_cv_prog_STRIP"; then
  2320. if test -n "$ac_tool_prefix"; then
  2321.   # Extract the first word of "strip", so it can be a program name with args.
  2322. set dummy strip; ac_word=$2
  2323. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2324. echo "configure:2325: checking for $ac_word" >&5
  2325. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2326.   echo $ac_n "(cached) $ac_c" 1>&6
  2327. else
  2328.   if test -n "$STRIP"; then
  2329.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2330. else
  2331.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2332.   ac_dummy="$PATH"
  2333.   for ac_dir in $ac_dummy; do
  2334.     test -z "$ac_dir" && ac_dir=.
  2335.     if test -f $ac_dir/$ac_word; then
  2336.       ac_cv_prog_STRIP="strip"
  2337.       break
  2338.     fi
  2339.   done
  2340.   IFS="$ac_save_ifs"
  2341.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  2342. fi
  2343. fi
  2344. STRIP="$ac_cv_prog_STRIP"
  2345. if test -n "$STRIP"; then
  2346.   echo "$ac_t""$STRIP" 1>&6
  2347. else
  2348.   echo "$ac_t""no" 1>&6
  2349. fi
  2350.  
  2351. else
  2352.   STRIP=":"
  2353. fi
  2354. fi
  2355.  
  2356.  
  2357. enable_dlopen=no
  2358. enable_win32_dll=no
  2359.  
  2360. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2361. if test "${enable_libtool_lock+set}" = set; then
  2362.   enableval="$enable_libtool_lock"
  2363.   :
  2364. fi
  2365.  
  2366. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2367.  
  2368. # Some flags need to be propagated to the compiler or linker for good
  2369. # libtool support.
  2370. case $host in
  2371. *-*-irix6*)
  2372.   # Find out which ABI we are using.
  2373.   echo '#line 2374 "configure"' > conftest.$ac_ext
  2374.   if { (eval echo configure:2375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2375.     case `/usr/bin/file conftest.$ac_objext` in
  2376.     *32-bit*)
  2377.       LD="${LD-ld} -32"
  2378.       ;;
  2379.     *N32*)
  2380.       LD="${LD-ld} -n32"
  2381.       ;;
  2382.     *64-bit*)
  2383.       LD="${LD-ld} -64"
  2384.       ;;
  2385.     esac
  2386.   fi
  2387.   rm -rf conftest*
  2388.   ;;
  2389.  
  2390. *-*-sco3.2v5*)
  2391.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2392.   SAVE_CFLAGS="$CFLAGS"
  2393.   CFLAGS="$CFLAGS -belf"
  2394.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  2395. echo "configure:2396: checking whether the C compiler needs -belf" >&5
  2396. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  2397.   echo $ac_n "(cached) $ac_c" 1>&6
  2398. else
  2399.   
  2400.      ac_ext=c
  2401. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2402. ac_cpp='$CPP $CPPFLAGS'
  2403. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2404. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2405. cross_compiling=$ac_cv_prog_cc_cross
  2406.  
  2407.      cat > conftest.$ac_ext <<EOF
  2408. #line 2409 "configure"
  2409. #include "confdefs.h"
  2410.  
  2411. int main() {
  2412.  
  2413. ; return 0; }
  2414. EOF
  2415. if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2416.   rm -rf conftest*
  2417.   lt_cv_cc_needs_belf=yes
  2418. else
  2419.   echo "configure: failed program was:" >&5
  2420.   cat conftest.$ac_ext >&5
  2421.   rm -rf conftest*
  2422.   lt_cv_cc_needs_belf=no
  2423. fi
  2424. rm -f conftest*
  2425.      ac_ext=c
  2426. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2427. ac_cpp='$CPP $CPPFLAGS'
  2428. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2429. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2430. cross_compiling=$ac_cv_prog_cc_cross
  2431.  
  2432. fi
  2433.  
  2434. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  2435.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2436.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2437.     CFLAGS="$SAVE_CFLAGS"
  2438.   fi
  2439.   ;;
  2440.  
  2441.  
  2442. esac
  2443.  
  2444. # Sed substitution that helps us do robust quoting.  It backslashifies
  2445. # metacharacters that are still active within double-quoted strings.
  2446. Xsed='sed -e s/^X//'
  2447. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  2448.  
  2449. # Same as above, but do not quote variable references.
  2450. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  2451.  
  2452. # Sed substitution to delay expansion of an escaped shell variable in a
  2453. # double_quote_subst'ed string.
  2454. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2455.  
  2456. # Constants:
  2457. rm="rm -f"
  2458.  
  2459. # Global variables:
  2460. default_ofile=libtool
  2461. can_build_shared=yes
  2462.  
  2463. # All known linkers require a `.a' archive for static linking (except M$VC,
  2464. # which needs '.lib').
  2465. libext=a
  2466. ltmain="$ac_aux_dir/ltmain.sh"
  2467. ofile="$default_ofile"
  2468. with_gnu_ld="$lt_cv_prog_gnu_ld"
  2469. need_locks="$enable_libtool_lock"
  2470.  
  2471. old_CC="$CC"
  2472. old_CFLAGS="$CFLAGS"
  2473.  
  2474. # Set sane defaults for various variables
  2475. test -z "$AR" && AR=ar
  2476. test -z "$AR_FLAGS" && AR_FLAGS=cru
  2477. test -z "$AS" && AS=as
  2478. test -z "$CC" && CC=cc
  2479. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2480. test -z "$LD" && LD=ld
  2481. test -z "$LN_S" && LN_S="ln -s"
  2482. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  2483. test -z "$NM" && NM=nm
  2484. test -z "$OBJDUMP" && OBJDUMP=objdump
  2485. test -z "$RANLIB" && RANLIB=:
  2486. test -z "$STRIP" && STRIP=:
  2487. test -z "$ac_objext" && ac_objext=o
  2488.  
  2489. if test x"$host" != x"$build"; then
  2490.   ac_tool_prefix=${host_alias}-
  2491. else
  2492.   ac_tool_prefix=
  2493. fi
  2494.  
  2495. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  2496. case $host_os in
  2497. linux-gnu*) ;;
  2498. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  2499. esac
  2500.  
  2501. case $host_os in
  2502. aix3*)
  2503.   # AIX sometimes has problems with the GCC collect2 program.  For some
  2504.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  2505.   # vanish in a puff of smoke.
  2506.   if test "X${COLLECT_NAMES+set}" != Xset; then
  2507.     COLLECT_NAMES=
  2508.     export COLLECT_NAMES
  2509.   fi
  2510.   ;;
  2511. esac
  2512.  
  2513. # Determine commands to create old-style static archives.
  2514. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  2515. old_postinstall_cmds='chmod 644 $oldlib'
  2516. old_postuninstall_cmds=
  2517.  
  2518. if test -n "$RANLIB"; then
  2519.   case $host_os in
  2520.   openbsd*)
  2521.     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  2522.     ;;
  2523.   *)
  2524.     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  2525.     ;;
  2526.   esac
  2527.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2528. fi
  2529.  
  2530. # Allow CC to be a program name with arguments.
  2531. set dummy $CC
  2532. compiler="$2"
  2533.  
  2534. echo $ac_n "checking for objdir""... $ac_c" 1>&6
  2535. echo "configure:2536: checking for objdir" >&5
  2536. rm -f .libs 2>/dev/null
  2537. mkdir .libs 2>/dev/null
  2538. if test -d .libs; then
  2539.   objdir=.libs
  2540. else
  2541.   # MS-DOS does not allow filenames that begin with a dot.
  2542.   objdir=_libs
  2543. fi
  2544. rmdir .libs 2>/dev/null
  2545. echo "$ac_t""$objdir" 1>&6
  2546.  
  2547.  
  2548. # Check whether --with-pic or --without-pic was given.
  2549. if test "${with_pic+set}" = set; then
  2550.   withval="$with_pic"
  2551.   pic_mode="$withval"
  2552. else
  2553.   pic_mode=default
  2554. fi
  2555.  
  2556. test -z "$pic_mode" && pic_mode=default
  2557.  
  2558. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  2559. # in isolation, and that seeing it set (from the cache) indicates that
  2560. # the associated values are set (in the cache) correctly too.
  2561. echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  2562. echo "configure:2563: checking for $compiler option to produce PIC" >&5
  2563. if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  2564.   echo $ac_n "(cached) $ac_c" 1>&6
  2565. else
  2566.    lt_cv_prog_cc_pic=
  2567.   lt_cv_prog_cc_shlib=
  2568.   lt_cv_prog_cc_wl=
  2569.   lt_cv_prog_cc_static=
  2570.   lt_cv_prog_cc_no_builtin=
  2571.   lt_cv_prog_cc_can_build_shared=$can_build_shared
  2572.  
  2573.   if test "$GCC" = yes; then
  2574.     lt_cv_prog_cc_wl='-Wl,'
  2575.     lt_cv_prog_cc_static='-static'
  2576.  
  2577.     case $host_os in
  2578.     aix*)
  2579.       # Below there is a dirty hack to force normal static linking with -ldl
  2580.       # The problem is because libdl dynamically linked with both libc and
  2581.       # libC (AIX C++ library), which obviously doesn't included in libraries
  2582.       # list by gcc. This cause undefined symbols with -static flags.
  2583.       # This hack allows C programs to be linked with "-static -ldl", but
  2584.       # not sure about C++ programs.
  2585.       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  2586.       ;;
  2587.     amigaos*)
  2588.       # FIXME: we need at least 68020 code to build shared libraries, but
  2589.       # adding the `-m68020' flag to GCC prevents building anything better,
  2590.       # like `-m68040'.
  2591.       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  2592.       ;;
  2593.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  2594.       # PIC is the default for these OSes.
  2595.       ;;
  2596.     darwin* | rhapsody*)
  2597.       # PIC is the default on this platform
  2598.       # Common symbols not allowed in MH_DYLIB files
  2599.       lt_cv_prog_cc_pic='-fno-common'
  2600.       ;;
  2601.     cygwin* | mingw* | pw32* | os2*)
  2602.       # This hack is so that the source file can tell whether it is being
  2603.       # built for inclusion in a dll (and should export symbols for example).
  2604.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2605.       ;;
  2606.     sysv4*MP*)
  2607.       if test -d /usr/nec; then
  2608.      lt_cv_prog_cc_pic=-Kconform_pic
  2609.       fi
  2610.       ;;
  2611.     *)
  2612.       lt_cv_prog_cc_pic='-fPIC'
  2613.       ;;
  2614.     esac
  2615.   else
  2616.     # PORTME Check for PIC flags for the system compiler.
  2617.     case $host_os in
  2618.     aix3* | aix4* | aix5*)
  2619.       lt_cv_prog_cc_wl='-Wl,'
  2620.       # All AIX code is PIC.
  2621.       if test "$host_cpu" = ia64; then
  2622.     # AIX 5 now supports IA64 processor
  2623.     lt_cv_prog_cc_static='-Bstatic'
  2624.       else
  2625.     lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  2626.       fi
  2627.       ;;
  2628.  
  2629.     hpux9* | hpux10* | hpux11*)
  2630.       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  2631.       lt_cv_prog_cc_wl='-Wl,'
  2632.       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  2633.       lt_cv_prog_cc_pic='+Z'
  2634.       ;;
  2635.  
  2636.     irix5* | irix6* | nonstopux*)
  2637.       lt_cv_prog_cc_wl='-Wl,'
  2638.       lt_cv_prog_cc_static='-non_shared'
  2639.       # PIC (with -KPIC) is the default.
  2640.       ;;
  2641.  
  2642.     cygwin* | mingw* | pw32* | os2*)
  2643.       # This hack is so that the source file can tell whether it is being
  2644.       # built for inclusion in a dll (and should export symbols for example).
  2645.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2646.       ;;
  2647.  
  2648.     newsos6)
  2649.       lt_cv_prog_cc_pic='-KPIC'
  2650.       lt_cv_prog_cc_static='-Bstatic'
  2651.       ;;
  2652.  
  2653.     osf3* | osf4* | osf5*)
  2654.       # All OSF/1 code is PIC.
  2655.       lt_cv_prog_cc_wl='-Wl,'
  2656.       lt_cv_prog_cc_static='-non_shared'
  2657.       ;;
  2658.  
  2659.     sco3.2v5*)
  2660.       lt_cv_prog_cc_pic='-Kpic'
  2661.       lt_cv_prog_cc_static='-dn'
  2662.       lt_cv_prog_cc_shlib='-belf'
  2663.       ;;
  2664.  
  2665.     solaris*)
  2666.       lt_cv_prog_cc_pic='-KPIC'
  2667.       lt_cv_prog_cc_static='-Bstatic'
  2668.       lt_cv_prog_cc_wl='-Wl,'
  2669.       ;;
  2670.  
  2671.     sunos4*)
  2672.       lt_cv_prog_cc_pic='-PIC'
  2673.       lt_cv_prog_cc_static='-Bstatic'
  2674.       lt_cv_prog_cc_wl='-Qoption ld '
  2675.       ;;
  2676.  
  2677.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2678.       lt_cv_prog_cc_pic='-KPIC'
  2679.       lt_cv_prog_cc_static='-Bstatic'
  2680.       if test "x$host_vendor" = xsni; then
  2681.     lt_cv_prog_cc_wl='-LD'
  2682.       else
  2683.     lt_cv_prog_cc_wl='-Wl,'
  2684.       fi
  2685.       ;;
  2686.  
  2687.     uts4*)
  2688.       lt_cv_prog_cc_pic='-pic'
  2689.       lt_cv_prog_cc_static='-Bstatic'
  2690.       ;;
  2691.  
  2692.     sysv4*MP*)
  2693.       if test -d /usr/nec ;then
  2694.     lt_cv_prog_cc_pic='-Kconform_pic'
  2695.     lt_cv_prog_cc_static='-Bstatic'
  2696.       fi
  2697.       ;;
  2698.  
  2699.     *)
  2700.       lt_cv_prog_cc_can_build_shared=no
  2701.       ;;
  2702.     esac
  2703.   fi
  2704.  
  2705. fi
  2706.  
  2707. if test -z "$lt_cv_prog_cc_pic"; then
  2708.   echo "$ac_t""none" 1>&6
  2709. else
  2710.   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  2711.  
  2712.   # Check to make sure the pic_flag actually works.
  2713.   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  2714. echo "configure:2715: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  2715.   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  2716.   echo $ac_n "(cached) $ac_c" 1>&6
  2717. else
  2718.       save_CFLAGS="$CFLAGS"
  2719.     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2720.     cat > conftest.$ac_ext <<EOF
  2721. #line 2722 "configure"
  2722. #include "confdefs.h"
  2723.  
  2724. int main() {
  2725.  
  2726. ; return 0; }
  2727. EOF
  2728. if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2729.   rm -rf conftest*
  2730.         case $host_os in
  2731.       hpux9* | hpux10* | hpux11*)
  2732.     # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2733.     # they create non-PIC objects.  So, if there were any warnings, we
  2734.     # assume that PIC is not supported.
  2735.     if test -s conftest.err; then
  2736.       lt_cv_prog_cc_pic_works=no
  2737.     else
  2738.       lt_cv_prog_cc_pic_works=yes
  2739.     fi
  2740.     ;;
  2741.       *)
  2742.     lt_cv_prog_cc_pic_works=yes
  2743.     ;;
  2744.       esac
  2745.     
  2746. else
  2747.   echo "configure: failed program was:" >&5
  2748.   cat conftest.$ac_ext >&5
  2749.   rm -rf conftest*
  2750.         lt_cv_prog_cc_pic_works=no
  2751.     
  2752. fi
  2753. rm -f conftest*
  2754.     CFLAGS="$save_CFLAGS"
  2755.   
  2756. fi
  2757.  
  2758.  
  2759.   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2760.     lt_cv_prog_cc_pic=
  2761.     lt_cv_prog_cc_can_build_shared=no
  2762.   else
  2763.     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2764.   fi
  2765.  
  2766.   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  2767. fi
  2768.  
  2769. # Check for any special shared library compilation flags.
  2770. if test -n "$lt_cv_prog_cc_shlib"; then
  2771.   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  2772.   if echo "$old_CC $old_CFLAGS " | egrep -e "[     ]$lt_cv_prog_cc_shlib[     ]" >/dev/null; then :
  2773.   else
  2774.    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  2775.     lt_cv_prog_cc_can_build_shared=no
  2776.   fi
  2777. fi
  2778.  
  2779. echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  2780. echo "configure:2781: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  2781. if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  2782.   echo $ac_n "(cached) $ac_c" 1>&6
  2783. else
  2784.     lt_cv_prog_cc_static_works=no
  2785.   save_LDFLAGS="$LDFLAGS"
  2786.   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2787.   cat > conftest.$ac_ext <<EOF
  2788. #line 2789 "configure"
  2789. #include "confdefs.h"
  2790.  
  2791. int main() {
  2792.  
  2793. ; return 0; }
  2794. EOF
  2795. if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2796.   rm -rf conftest*
  2797.   lt_cv_prog_cc_static_works=yes
  2798. else
  2799.   echo "configure: failed program was:" >&5
  2800.   cat conftest.$ac_ext >&5
  2801. fi
  2802. rm -f conftest*
  2803.   LDFLAGS="$save_LDFLAGS"
  2804.  
  2805. fi
  2806.  
  2807.  
  2808. # Belt *and* braces to stop my trousers falling down:
  2809. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2810. echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  2811.  
  2812. pic_flag="$lt_cv_prog_cc_pic"
  2813. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2814. wl="$lt_cv_prog_cc_wl"
  2815. link_static_flag="$lt_cv_prog_cc_static"
  2816. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2817. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2818.  
  2819.  
  2820. # Check to see if options -o and -c are simultaneously supported by compiler
  2821. echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  2822. echo "configure:2823: checking if $compiler supports -c -o file.$ac_objext" >&5
  2823. if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  2824.   echo $ac_n "(cached) $ac_c" 1>&6
  2825. else
  2826.   
  2827. $rm -r conftest 2>/dev/null
  2828. mkdir conftest
  2829. cd conftest
  2830. echo "int some_variable = 0;" > conftest.$ac_ext
  2831. mkdir out
  2832. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2833. # that will create temporary files in the current directory regardless of
  2834. # the output directory.  Thus, making CWD read-only will cause this test
  2835. # to fail, enabling locking or at least warning the user not to do parallel
  2836. # builds.
  2837. chmod -w .
  2838. save_CFLAGS="$CFLAGS"
  2839. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2840. compiler_c_o=no
  2841. if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2842.   # The compiler can only warn and ignore the option if not recognized
  2843.   # So say no if there are warnings
  2844.   if test -s out/conftest.err; then
  2845.     lt_cv_compiler_c_o=no
  2846.   else
  2847.     lt_cv_compiler_c_o=yes
  2848.   fi
  2849. else
  2850.   # Append any errors to the config.log.
  2851.   cat out/conftest.err 1>&5
  2852.   lt_cv_compiler_c_o=no
  2853. fi
  2854. CFLAGS="$save_CFLAGS"
  2855. chmod u+w .
  2856. $rm conftest* out/*
  2857. rmdir out
  2858. cd ..
  2859. rmdir conftest
  2860. $rm -r conftest 2>/dev/null
  2861.  
  2862. fi
  2863.  
  2864. compiler_c_o=$lt_cv_compiler_c_o
  2865. echo "$ac_t""$compiler_c_o" 1>&6
  2866.  
  2867. if test x"$compiler_c_o" = x"yes"; then
  2868.   # Check to see if we can write to a .lo
  2869.   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  2870. echo "configure:2871: checking if $compiler supports -c -o file.lo" >&5
  2871.   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  2872.   echo $ac_n "(cached) $ac_c" 1>&6
  2873. else
  2874.   
  2875.   lt_cv_compiler_o_lo=no
  2876.   save_CFLAGS="$CFLAGS"
  2877.   CFLAGS="$CFLAGS -c -o conftest.lo"
  2878.   save_objext="$ac_objext"
  2879.   ac_objext=lo
  2880.   cat > conftest.$ac_ext <<EOF
  2881. #line 2882 "configure"
  2882. #include "confdefs.h"
  2883.  
  2884. int main() {
  2885. int some_variable = 0;
  2886. ; return 0; }
  2887. EOF
  2888. if { (eval echo configure:2889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2889.   rm -rf conftest*
  2890.       # The compiler can only warn and ignore the option if not recognized
  2891.     # So say no if there are warnings
  2892.     if test -s conftest.err; then
  2893.       lt_cv_compiler_o_lo=no
  2894.     else
  2895.       lt_cv_compiler_o_lo=yes
  2896.     fi
  2897.   
  2898. else
  2899.   echo "configure: failed program was:" >&5
  2900.   cat conftest.$ac_ext >&5
  2901. fi
  2902. rm -f conftest*
  2903.   ac_objext="$save_objext"
  2904.   CFLAGS="$save_CFLAGS"
  2905.   
  2906. fi
  2907.  
  2908.   compiler_o_lo=$lt_cv_compiler_o_lo
  2909.   echo "$ac_t""$compiler_o_lo" 1>&6
  2910. else
  2911.   compiler_o_lo=no
  2912. fi
  2913.  
  2914. # Check to see if we can do hard links to lock some files if needed
  2915. hard_links="nottested"
  2916. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2917.   # do not overwrite the value of need_locks provided by the user
  2918.   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  2919. echo "configure:2920: checking if we can lock with hard links" >&5
  2920.   hard_links=yes
  2921.   $rm conftest*
  2922.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2923.   touch conftest.a
  2924.   ln conftest.a conftest.b 2>&5 || hard_links=no
  2925.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2926.   echo "$ac_t""$hard_links" 1>&6
  2927.   if test "$hard_links" = no; then
  2928.     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  2929.     need_locks=warn
  2930.   fi
  2931. else
  2932.   need_locks=no
  2933. fi
  2934.  
  2935. if test "$GCC" = yes; then
  2936.   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2937.   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  2938. echo "configure:2939: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  2939.   echo "int some_variable = 0;" > conftest.$ac_ext
  2940.   save_CFLAGS="$CFLAGS"
  2941.   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2942.   compiler_rtti_exceptions=no
  2943.   cat > conftest.$ac_ext <<EOF
  2944. #line 2945 "configure"
  2945. #include "confdefs.h"
  2946.  
  2947. int main() {
  2948. int some_variable = 0;
  2949. ; return 0; }
  2950. EOF
  2951. if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2952.   rm -rf conftest*
  2953.       # The compiler can only warn and ignore the option if not recognized
  2954.     # So say no if there are warnings
  2955.     if test -s conftest.err; then
  2956.       compiler_rtti_exceptions=no
  2957.     else
  2958.       compiler_rtti_exceptions=yes
  2959.     fi
  2960.   
  2961. else
  2962.   echo "configure: failed program was:" >&5
  2963.   cat conftest.$ac_ext >&5
  2964. fi
  2965. rm -f conftest*
  2966.   CFLAGS="$save_CFLAGS"
  2967.   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  2968.  
  2969.   if test "$compiler_rtti_exceptions" = "yes"; then
  2970.     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2971.   else
  2972.     no_builtin_flag=' -fno-builtin'
  2973.   fi
  2974. fi
  2975.  
  2976. # See if the linker supports building shared libraries.
  2977. echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  2978. echo "configure:2979: checking whether the linker ($LD) supports shared libraries" >&5
  2979.  
  2980. allow_undefined_flag=
  2981. no_undefined_flag=
  2982. need_lib_prefix=unknown
  2983. need_version=unknown
  2984. # when you set need_version to no, make sure it does not cause -set_version
  2985. # flags to be left without arguments
  2986. archive_cmds=
  2987. archive_expsym_cmds=
  2988. old_archive_from_new_cmds=
  2989. old_archive_from_expsyms_cmds=
  2990. export_dynamic_flag_spec=
  2991. whole_archive_flag_spec=
  2992. thread_safe_flag_spec=
  2993. hardcode_into_libs=no
  2994. hardcode_libdir_flag_spec=
  2995. hardcode_libdir_separator=
  2996. hardcode_direct=no
  2997. hardcode_minus_L=no
  2998. hardcode_shlibpath_var=unsupported
  2999. runpath_var=
  3000. link_all_deplibs=unknown
  3001. always_export_symbols=no
  3002. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3003. # include_expsyms should be a list of space-separated symbols to be *always*
  3004. # included in the symbol list
  3005. include_expsyms=
  3006. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  3007. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  3008. # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  3009. # as well as any symbol that contains `d'.
  3010. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  3011. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  3012. # platforms (ab)use it in PIC code, but their linkers get confused if
  3013. # the symbol is explicitly referenced.  Since portable code cannot
  3014. # rely on this symbol name, it's probably fine to never include it in
  3015. # preloaded symbol tables.
  3016. extract_expsyms_cmds=
  3017.  
  3018. case $host_os in
  3019. cygwin* | mingw* | pw32*)
  3020.   # FIXME: the MSVC++ port hasn't been tested in a loooong time
  3021.   # When not using gcc, we currently assume that we are using
  3022.   # Microsoft Visual C++.
  3023.   if test "$GCC" != yes; then
  3024.     with_gnu_ld=no
  3025.   fi
  3026.   ;;
  3027. openbsd*)
  3028.   with_gnu_ld=no
  3029.   ;;
  3030. esac
  3031.  
  3032. ld_shlibs=yes
  3033. if test "$with_gnu_ld" = yes; then
  3034.   # If archive_cmds runs LD, not CC, wlarc should be empty
  3035.   wlarc='${wl}'
  3036.  
  3037.   # See if GNU ld supports shared libraries.
  3038.   case $host_os in
  3039.   aix3* | aix4* | aix5*)
  3040.     # On AIX, the GNU linker is very broken
  3041.     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  3042.     ld_shlibs=no
  3043.     cat <<EOF 1>&2
  3044.  
  3045. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  3046. *** to be unable to reliably create shared libraries on AIX.
  3047. *** Therefore, libtool is disabling shared libraries support.  If you
  3048. *** really care for shared libraries, you may want to modify your PATH
  3049. *** so that a non-GNU linker is found, and then restart.
  3050.  
  3051. EOF
  3052.     ;;
  3053.  
  3054.   amigaos*)
  3055.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3056.     hardcode_libdir_flag_spec='-L$libdir'
  3057.     hardcode_minus_L=yes
  3058.  
  3059.     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  3060.     # that the semantics of dynamic libraries on AmigaOS, at least up
  3061.     # to version 4, is to share data among multiple programs linked
  3062.     # with the same dynamic library.  Since this doesn't match the
  3063.     # behavior of shared libraries on other platforms, we can use
  3064.     # them.
  3065.     ld_shlibs=no
  3066.     ;;
  3067.  
  3068.   beos*)
  3069.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3070.       allow_undefined_flag=unsupported
  3071.       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3072.       # support --undefined.  This deserves some investigation.  FIXME
  3073.       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3074.     else
  3075.       ld_shlibs=no
  3076.     fi
  3077.     ;;
  3078.  
  3079.   cygwin* | mingw* | pw32*)
  3080.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  3081.     # no search path for DLLs.
  3082.     hardcode_libdir_flag_spec='-L$libdir'
  3083.     allow_undefined_flag=unsupported
  3084.     always_export_symbols=yes
  3085.  
  3086.     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  3087.       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  3088.       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  3089.       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  3090.       else $CC -o impgen impgen.c ; fi)~
  3091.       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  3092.  
  3093.     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  3094.  
  3095.     # cygwin and mingw dlls have different entry points and sets of symbols
  3096.     # to exclude.
  3097.     # FIXME: what about values for MSVC?
  3098.     dll_entry=__cygwin_dll_entry@12
  3099.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  3100.     case $host_os in
  3101.     mingw*)
  3102.       # mingw values
  3103.       dll_entry=_DllMainCRTStartup@12
  3104.       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  3105.       ;;
  3106.     esac
  3107.  
  3108.     # mingw and cygwin differ, and it's simplest to just exclude the union
  3109.     # of the two symbol sets.
  3110.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  3111.  
  3112.     # recent cygwin and mingw systems supply a stub DllMain which the user
  3113.     # can override, but on older systems we have to supply one (in ltdll.c)
  3114.     if test "x$lt_cv_need_dllmain" = "xyes"; then
  3115.       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  3116.       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  3117.     test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  3118.     else
  3119.       ltdll_obj=
  3120.       ltdll_cmds=
  3121.     fi
  3122.  
  3123.     # Extract the symbol export list from an `--export-all' def file,
  3124.     # then regenerate the def file from the symbol export list, so that
  3125.     # the compiled dll only exports the symbol export list.
  3126.     # Be careful not to strip the DATA tag left be newer dlltools.
  3127.     export_symbols_cmds="$ltdll_cmds"'
  3128.       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  3129.       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  3130.  
  3131.     # If the export-symbols file already is a .def file (1st line
  3132.     # is EXPORTS), use it as is.
  3133.     # If DATA tags from a recent dlltool are present, honour them!
  3134.     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  3135.     cp $export_symbols $output_objdir/$soname-def;
  3136.       else
  3137.     echo EXPORTS > $output_objdir/$soname-def;
  3138.     _lt_hint=1;
  3139.     cat $export_symbols | while read symbol; do
  3140.      set dummy \$symbol;
  3141.      case \$# in
  3142.        2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  3143.        *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  3144.      esac;
  3145.      _lt_hint=`expr 1 + \$_lt_hint`;
  3146.     done;
  3147.       fi~
  3148.       '"$ltdll_cmds"'
  3149.       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  3150.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  3151.       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  3152.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  3153.       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  3154.     ;;
  3155.  
  3156.   netbsd*)
  3157.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3158.       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3159.       wlarc=
  3160.     else
  3161.       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3162.       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3163.     fi
  3164.     ;;
  3165.  
  3166.   solaris* | sysv5*)
  3167.     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  3168.       ld_shlibs=no
  3169.       cat <<EOF 1>&2
  3170.  
  3171. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  3172. *** create shared libraries on Solaris systems.  Therefore, libtool
  3173. *** is disabling shared libraries support.  We urge you to upgrade GNU
  3174. *** binutils to release 2.9.1 or newer.  Another option is to modify
  3175. *** your PATH or compiler configuration so that the native linker is
  3176. *** used, and then restart.
  3177.  
  3178. EOF
  3179.     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3180.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3181.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3182.     else
  3183.       ld_shlibs=no
  3184.     fi
  3185.     ;;
  3186.  
  3187.   sunos4*)
  3188.     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3189.     wlarc=
  3190.     hardcode_direct=yes
  3191.     hardcode_shlibpath_var=no
  3192.     ;;
  3193.  
  3194.   *)
  3195.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3196.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3197.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3198.     else
  3199.       ld_shlibs=no
  3200.     fi
  3201.     ;;
  3202.   esac
  3203.  
  3204.   if test "$ld_shlibs" = yes; then
  3205.     runpath_var=LD_RUN_PATH
  3206.     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  3207.     export_dynamic_flag_spec='${wl}--export-dynamic'
  3208.     case $host_os in
  3209.     cygwin* | mingw* | pw32*)
  3210.       # dlltool doesn't understand --whole-archive et. al.
  3211.       whole_archive_flag_spec=
  3212.       ;;
  3213.     *)
  3214.       # ancient GNU ld didn't support --whole-archive et. al.
  3215.       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  3216.     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3217.       else
  3218.     whole_archive_flag_spec=
  3219.       fi
  3220.       ;;
  3221.     esac
  3222.   fi
  3223. else
  3224.   # PORTME fill in a description of your system's linker (not GNU ld)
  3225.   case $host_os in
  3226.   aix3*)
  3227.     allow_undefined_flag=unsupported
  3228.     always_export_symbols=yes
  3229.     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  3230.     # Note: this linker hardcodes the directories in LIBPATH if there
  3231.     # are no directories specified by -L.
  3232.     hardcode_minus_L=yes
  3233.     if test "$GCC" = yes && test -z "$link_static_flag"; then
  3234.       # Neither direct hardcoding nor static linking is supported with a
  3235.       # broken collect2.
  3236.       hardcode_direct=unsupported
  3237.     fi
  3238.     ;;
  3239.  
  3240.   aix4* | aix5*)
  3241.     if test "$host_cpu" = ia64; then
  3242.       # On IA64, the linker does run time linking by default, so we don't
  3243.       # have to do anything special.
  3244.       aix_use_runtimelinking=no
  3245.       exp_sym_flag='-Bexport'
  3246.       no_entry_flag=""
  3247.     else
  3248.       aix_use_runtimelinking=no
  3249.  
  3250.       # Test if we are trying to use run time linking or normal
  3251.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3252.       # need to do runtime linking.
  3253.       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  3254.     for ld_flag in $LDFLAGS; do
  3255.       if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  3256.         aix_use_runtimelinking=yes
  3257.         break
  3258.       fi
  3259.     done
  3260.       esac
  3261.  
  3262.       exp_sym_flag='-bexport'
  3263.       no_entry_flag='-bnoentry'
  3264.     fi
  3265.  
  3266.     # When large executables or shared objects are built, AIX ld can
  3267.     # have problems creating the table of contents.  If linking a library
  3268.     # or program results in "error TOC overflow" add -mminimal-toc to
  3269.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  3270.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3271.  
  3272.     hardcode_direct=yes
  3273.     archive_cmds=''
  3274.     hardcode_libdir_separator=':'
  3275.     if test "$GCC" = yes; then
  3276.       case $host_os in aix4.[012]|aix4.[012].*)
  3277.     collect2name=`${CC} -print-prog-name=collect2`
  3278.     if test -f "$collect2name" && \
  3279.       strings "$collect2name" | grep resolve_lib_name >/dev/null
  3280.     then
  3281.       # We have reworked collect2
  3282.       hardcode_direct=yes
  3283.     else
  3284.       # We have old collect2
  3285.       hardcode_direct=unsupported
  3286.       # It fails to find uninstalled libraries when the uninstalled
  3287.       # path is not listed in the libpath.  Setting hardcode_minus_L
  3288.       # to unsupported forces relinking
  3289.       hardcode_minus_L=yes
  3290.       hardcode_libdir_flag_spec='-L$libdir'
  3291.       hardcode_libdir_separator=
  3292.     fi
  3293.       esac
  3294.  
  3295.       shared_flag='-shared'
  3296.     else
  3297.       # not using gcc
  3298.       if test "$host_cpu" = ia64; then
  3299.     shared_flag='${wl}-G'
  3300.       else
  3301.     if test "$aix_use_runtimelinking" = yes; then
  3302.       shared_flag='${wl}-G'
  3303.     else
  3304.       shared_flag='${wl}-bM:SRE'
  3305.     fi
  3306.       fi
  3307.     fi
  3308.  
  3309.     # It seems that -bexpall can do strange things, so it is better to
  3310.     # generate a list of symbols to export.
  3311.     always_export_symbols=yes
  3312.     if test "$aix_use_runtimelinking" = yes; then
  3313.       # Warning - without using the other runtime loading flags (-brtl),
  3314.       # -berok will link without error, but may produce a broken library.
  3315.       allow_undefined_flag='-berok'
  3316.       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  3317.       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3318.     else
  3319.       if test "$host_cpu" = ia64; then
  3320.     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  3321.     allow_undefined_flag="-z nodefs"
  3322.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3323.       else
  3324.     hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  3325.     # Warning - without using the other run time loading flags,
  3326.     # -berok will link without error, but may produce a broken library.
  3327.     allow_undefined_flag='${wl}-berok'
  3328.     # This is a bit strange, but is similar to how AIX traditionally builds
  3329.     # it's shared libraries.
  3330.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  3331.       fi
  3332.     fi
  3333.     ;;
  3334.  
  3335.   amigaos*)
  3336.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3337.     hardcode_libdir_flag_spec='-L$libdir'
  3338.     hardcode_minus_L=yes
  3339.     # see comment about different semantics on the GNU ld section
  3340.     ld_shlibs=no
  3341.     ;;
  3342.  
  3343.   cygwin* | mingw* | pw32*)
  3344.     # When not using gcc, we currently assume that we are using
  3345.     # Microsoft Visual C++.
  3346.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  3347.     # no search path for DLLs.
  3348.     hardcode_libdir_flag_spec=' '
  3349.     allow_undefined_flag=unsupported
  3350.     # Tell ltmain to make .lib files, not .a files.
  3351.     libext=lib
  3352.     # FIXME: Setting linknames here is a bad hack.
  3353.     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  3354.     # The linker will automatically build a .lib file if we build a DLL.
  3355.     old_archive_from_new_cmds='true'
  3356.     # FIXME: Should let the user specify the lib program.
  3357.     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  3358.     fix_srcfile_path='`cygpath -w "$srcfile"`'
  3359.     ;;
  3360.  
  3361.   darwin* | rhapsody*)
  3362.     case "$host_os" in
  3363.     rhapsody* | darwin1.[012])
  3364.       allow_undefined_flag='-undefined suppress'
  3365.       ;;
  3366.     *) # Darwin 1.3 on
  3367.       allow_undefined_flag='-flat_namespace -undefined suppress'
  3368.       ;;
  3369.     esac
  3370.     # FIXME: Relying on posixy $() will cause problems for
  3371.     #        cross-compilation, but unfortunately the echo tests do not
  3372.     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  3373.     #         `"' quotes if we put them in here... so don't!
  3374.     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  3375.     # We need to add '_' to the symbols in $export_symbols first
  3376.     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  3377.     hardcode_direct=yes
  3378.     hardcode_shlibpath_var=no
  3379.     whole_archive_flag_spec='-all_load $convenience'
  3380.     ;;
  3381.  
  3382.   freebsd1*)
  3383.     ld_shlibs=no
  3384.     ;;
  3385.  
  3386.   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  3387.   # support.  Future versions do this automatically, but an explicit c++rt0.o
  3388.   # does not break anything, and helps significantly (at the cost of a little
  3389.   # extra space).
  3390.   freebsd2.2*)
  3391.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  3392.     hardcode_libdir_flag_spec='-R$libdir'
  3393.     hardcode_direct=yes
  3394.     hardcode_shlibpath_var=no
  3395.     ;;
  3396.  
  3397.   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  3398.   freebsd2*)
  3399.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3400.     hardcode_direct=yes
  3401.     hardcode_minus_L=yes
  3402.     hardcode_shlibpath_var=no
  3403.     ;;
  3404.  
  3405.   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  3406.   freebsd*)
  3407.     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  3408.     hardcode_libdir_flag_spec='-R$libdir'
  3409.     hardcode_direct=yes
  3410.     hardcode_shlibpath_var=no
  3411.     ;;
  3412.  
  3413.   hpux9* | hpux10* | hpux11*)
  3414.     case $host_os in
  3415.     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  3416.     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  3417.     esac
  3418.     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  3419.     hardcode_libdir_separator=:
  3420.     hardcode_direct=yes
  3421.     hardcode_minus_L=yes # Not in the search PATH, but as the default
  3422.              # location of the library.
  3423.     export_dynamic_flag_spec='${wl}-E'
  3424.     ;;
  3425.  
  3426.   irix5* | irix6* | nonstopux*)
  3427.     if test "$GCC" = yes; then
  3428.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3429.     else
  3430.       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3431.     fi
  3432.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3433.     hardcode_libdir_separator=:
  3434.     link_all_deplibs=yes
  3435.     ;;
  3436.  
  3437.   netbsd*)
  3438.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3439.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  3440.     else
  3441.       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  3442.     fi
  3443.     hardcode_libdir_flag_spec='-R$libdir'
  3444.     hardcode_direct=yes
  3445.     hardcode_shlibpath_var=no
  3446.     ;;
  3447.  
  3448.   newsos6)
  3449.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3450.     hardcode_direct=yes
  3451.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3452.     hardcode_libdir_separator=:
  3453.     hardcode_shlibpath_var=no
  3454.     ;;
  3455.  
  3456.   openbsd*)
  3457.     hardcode_direct=yes
  3458.     hardcode_shlibpath_var=no
  3459.     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3460.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  3461.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3462.       export_dynamic_flag_spec='${wl}-E'
  3463.     else
  3464.       case "$host_os" in
  3465.       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  3466.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3467.     hardcode_libdir_flag_spec='-R$libdir'
  3468.         ;;
  3469.       *)
  3470.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  3471.         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3472.         ;;
  3473.       esac
  3474.     fi
  3475.     ;;
  3476.  
  3477.   os2*)
  3478.     hardcode_libdir_flag_spec='-L$libdir'
  3479.     hardcode_minus_L=yes
  3480.     allow_undefined_flag=unsupported
  3481.     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  3482.     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  3483.     ;;
  3484.  
  3485.   osf3*)
  3486.     if test "$GCC" = yes; then
  3487.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3488.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3489.     else
  3490.       allow_undefined_flag=' -expect_unresolved \*'
  3491.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3492.     fi
  3493.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3494.     hardcode_libdir_separator=:
  3495.     ;;
  3496.  
  3497.   osf4* | osf5*)    # as osf3* with the addition of -msym flag
  3498.     if test "$GCC" = yes; then
  3499.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3500.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3501.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3502.     else
  3503.       allow_undefined_flag=' -expect_unresolved \*'
  3504.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3505.       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  3506.       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  3507.  
  3508.       #Both c and cxx compiler support -rpath directly
  3509.       hardcode_libdir_flag_spec='-rpath $libdir'
  3510.     fi
  3511.     hardcode_libdir_separator=:
  3512.     ;;
  3513.  
  3514.   sco3.2v5*)
  3515.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3516.     hardcode_shlibpath_var=no
  3517.     runpath_var=LD_RUN_PATH
  3518.     hardcode_runpath_var=yes
  3519.     export_dynamic_flag_spec='${wl}-Bexport'
  3520.     ;;
  3521.  
  3522.   solaris*)
  3523.     # gcc --version < 3.0 without binutils cannot create self contained
  3524.     # shared libraries reliably, requiring libgcc.a to resolve some of
  3525.     # the object symbols generated in some cases.  Libraries that use
  3526.     # assert need libgcc.a to resolve __eprintf, for example.  Linking
  3527.     # a copy of libgcc.a into every shared library to guarantee resolving
  3528.     # such symbols causes other problems:  According to Tim Van Holder
  3529.     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  3530.     # (to the application) exception stack for one thing.
  3531.     no_undefined_flag=' -z defs'
  3532.     if test "$GCC" = yes; then
  3533.       case `$CC --version 2>/dev/null` in
  3534.       [12].*)
  3535.     cat <<EOF 1>&2
  3536.  
  3537. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  3538. *** create self contained shared libraries on Solaris systems, without
  3539. *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
  3540. *** -no-undefined support, which will at least allow you to build shared
  3541. *** libraries.  However, you may find that when you link such libraries
  3542. *** into an application without using GCC, you have to manually add
  3543. *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
  3544. *** upgrade to a newer version of GCC.  Another option is to rebuild your
  3545. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  3546.  
  3547. EOF
  3548.         no_undefined_flag=
  3549.     ;;
  3550.       esac
  3551.     fi
  3552.     # $CC -shared without GNU ld will not create a library from C++
  3553.     # object files and a static libstdc++, better avoid it by now
  3554.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3555.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3556.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3557.     hardcode_libdir_flag_spec='-R$libdir'
  3558.     hardcode_shlibpath_var=no
  3559.     case $host_os in
  3560.     solaris2.[0-5] | solaris2.[0-5].*) ;;
  3561.     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  3562.       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  3563.     esac
  3564.     link_all_deplibs=yes
  3565.     ;;
  3566.  
  3567.   sunos4*)
  3568.     if test "x$host_vendor" = xsequent; then
  3569.       # Use $CC to link under sequent, because it throws in some extra .o
  3570.       # files that make .init and .fini sections work.
  3571.       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  3572.     else
  3573.       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  3574.     fi
  3575.     hardcode_libdir_flag_spec='-L$libdir'
  3576.     hardcode_direct=yes
  3577.     hardcode_minus_L=yes
  3578.     hardcode_shlibpath_var=no
  3579.     ;;
  3580.  
  3581.   sysv4)
  3582.     if test "x$host_vendor" = xsno; then
  3583.       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3584.       hardcode_direct=yes # is this really true???
  3585.     else
  3586.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3587.       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  3588.     fi
  3589.     runpath_var='LD_RUN_PATH'
  3590.     hardcode_shlibpath_var=no
  3591.     ;;
  3592.  
  3593.   sysv4.3*)
  3594.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3595.     hardcode_shlibpath_var=no
  3596.     export_dynamic_flag_spec='-Bexport'
  3597.     ;;
  3598.  
  3599.   sysv5*)
  3600.     no_undefined_flag=' -z text'
  3601.     # $CC -shared without GNU ld will not create a library from C++
  3602.     # object files and a static libstdc++, better avoid it by now
  3603.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3604.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3605.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3606.     hardcode_libdir_flag_spec=
  3607.     hardcode_shlibpath_var=no
  3608.     runpath_var='LD_RUN_PATH'
  3609.     ;;
  3610.  
  3611.   uts4*)
  3612.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3613.     hardcode_libdir_flag_spec='-L$libdir'
  3614.     hardcode_shlibpath_var=no
  3615.     ;;
  3616.  
  3617.   dgux*)
  3618.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3619.     hardcode_libdir_flag_spec='-L$libdir'
  3620.     hardcode_shlibpath_var=no
  3621.     ;;
  3622.  
  3623.   sysv4*MP*)
  3624.     if test -d /usr/nec; then
  3625.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3626.       hardcode_shlibpath_var=no
  3627.       runpath_var=LD_RUN_PATH
  3628.       hardcode_runpath_var=yes
  3629.       ld_shlibs=yes
  3630.     fi
  3631.     ;;
  3632.  
  3633.   sysv4.2uw2*)
  3634.     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3635.     hardcode_direct=yes
  3636.     hardcode_minus_L=no
  3637.     hardcode_shlibpath_var=no
  3638.     hardcode_runpath_var=yes
  3639.     runpath_var=LD_RUN_PATH
  3640.     ;;
  3641.  
  3642.   sysv5uw7* | unixware7*)
  3643.     no_undefined_flag='${wl}-z ${wl}text'
  3644.     if test "$GCC" = yes; then
  3645.       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3646.     else
  3647.       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3648.     fi
  3649.     runpath_var='LD_RUN_PATH'
  3650.     hardcode_shlibpath_var=no
  3651.     ;;
  3652.  
  3653.   *)
  3654.     ld_shlibs=no
  3655.     ;;
  3656.   esac
  3657. fi
  3658. echo "$ac_t""$ld_shlibs" 1>&6
  3659. test "$ld_shlibs" = no && can_build_shared=no
  3660.  
  3661. # Check hardcoding attributes.
  3662. echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  3663. echo "configure:3664: checking how to hardcode library paths into programs" >&5
  3664. hardcode_action=
  3665. if test -n "$hardcode_libdir_flag_spec" || \
  3666.    test -n "$runpath_var"; then
  3667.  
  3668.   # We can hardcode non-existant directories.
  3669.   if test "$hardcode_direct" != no &&
  3670.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3671.      # have to relink, otherwise we might link with an installed library
  3672.      # when we should be linking with a yet-to-be-installed one
  3673.      ## test "$hardcode_shlibpath_var" != no &&
  3674.      test "$hardcode_minus_L" != no; then
  3675.     # Linking always hardcodes the temporary library directory.
  3676.     hardcode_action=relink
  3677.   else
  3678.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3679.     hardcode_action=immediate
  3680.   fi
  3681. else
  3682.   # We cannot hardcode anything, or else we can only hardcode existing
  3683.   # directories.
  3684.   hardcode_action=unsupported
  3685. fi
  3686. echo "$ac_t""$hardcode_action" 1>&6
  3687.  
  3688. striplib=
  3689. old_striplib=
  3690. echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  3691. echo "configure:3692: checking whether stripping libraries is possible" >&5
  3692. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3693.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3694.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3695.   echo "$ac_t""yes" 1>&6
  3696. else
  3697.   echo "$ac_t""no" 1>&6
  3698. fi
  3699.  
  3700. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3701. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3702.  
  3703. # PORTME Fill in your ld.so characteristics
  3704. echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  3705. echo "configure:3706: checking dynamic linker characteristics" >&5
  3706. library_names_spec=
  3707. libname_spec='lib$name'
  3708. soname_spec=
  3709. postinstall_cmds=
  3710. postuninstall_cmds=
  3711. finish_cmds=
  3712. finish_eval=
  3713. shlibpath_var=
  3714. shlibpath_overrides_runpath=unknown
  3715. version_type=none
  3716. dynamic_linker="$host_os ld.so"
  3717. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3718. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3719.  
  3720. case $host_os in
  3721. aix3*)
  3722.   version_type=linux
  3723.   library_names_spec='${libname}${release}.so$versuffix $libname.a'
  3724.   shlibpath_var=LIBPATH
  3725.  
  3726.   # AIX has no versioning support, so we append a major version to the name.
  3727.   soname_spec='${libname}${release}.so$major'
  3728.   ;;
  3729.  
  3730. aix4* | aix5*)
  3731.   version_type=linux
  3732.   if test "$host_cpu" = ia64; then
  3733.     # AIX 5 supports IA64
  3734.     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  3735.     shlibpath_var=LD_LIBRARY_PATH
  3736.   else
  3737.     # With GCC up to 2.95.x, collect2 would create an import file
  3738.     # for dependence libraries.  The import file would start with
  3739.     # the line `#! .'.  This would cause the generated library to
  3740.     # depend on `.', always an invalid library.  This was fixed in
  3741.     # development snapshots of GCC prior to 3.0.
  3742.     case $host_os in
  3743.       aix4 | aix4.[01] | aix4.[01].*)
  3744.     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3745.          echo ' yes '
  3746.          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3747.       :
  3748.     else
  3749.       can_build_shared=no
  3750.     fi
  3751.     ;;
  3752.     esac
  3753.     # AIX (on Power*) has no versioning support, so currently we can
  3754.     # not hardcode correct soname into executable. Probably we can
  3755.     # add versioning support to collect2, so additional links can
  3756.     # be useful in future.
  3757.     if test "$aix_use_runtimelinking" = yes; then
  3758.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3759.       # instead of lib<name>.a to let people know that these are not
  3760.       # typical AIX shared libraries.
  3761.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3762.     else
  3763.       # We preserve .a as extension for shared libraries through AIX4.2
  3764.       # and later when we are not doing run time linking.
  3765.       library_names_spec='${libname}${release}.a $libname.a'
  3766.       soname_spec='${libname}${release}.so$major'
  3767.     fi
  3768.     shlibpath_var=LIBPATH
  3769.   fi
  3770.   ;;
  3771.  
  3772. amigaos*)
  3773.   library_names_spec='$libname.ixlibrary $libname.a'
  3774.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3775.   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  3776.   ;;
  3777.  
  3778. beos*)
  3779.   library_names_spec='${libname}.so'
  3780.   dynamic_linker="$host_os ld.so"
  3781.   shlibpath_var=LIBRARY_PATH
  3782.   ;;
  3783.  
  3784. bsdi4*)
  3785.   version_type=linux
  3786.   need_version=no
  3787.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3788.   soname_spec='${libname}${release}.so$major'
  3789.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3790.   shlibpath_var=LD_LIBRARY_PATH
  3791.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3792.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3793.   export_dynamic_flag_spec=-rdynamic
  3794.   # the default ld.so.conf also contains /usr/contrib/lib and
  3795.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3796.   # libtool to hard-code these into programs
  3797.   ;;
  3798.  
  3799. cygwin* | mingw* | pw32*)
  3800.   version_type=windows
  3801.   need_version=no
  3802.   need_lib_prefix=no
  3803.   case $GCC,$host_os in
  3804.   yes,cygwin*)
  3805.     library_names_spec='$libname.dll.a'
  3806.     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3807.     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  3808.       dldir=$destdir/`dirname \$dlpath`~
  3809.       test -d \$dldir || mkdir -p \$dldir~
  3810.       $install_prog .libs/$dlname \$dldir/$dlname'
  3811.     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3812.       dlpath=$dir/\$dldll~
  3813.        $rm \$dlpath'
  3814.     ;;
  3815.   yes,mingw*)
  3816.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3817.     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  3818.     ;;
  3819.   yes,pw32*)
  3820.     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  3821.     ;;
  3822.   *)
  3823.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  3824.     ;;
  3825.   esac
  3826.   dynamic_linker='Win32 ld.exe'
  3827.   # FIXME: first we should search . and the directory the executable is in
  3828.   shlibpath_var=PATH
  3829.   ;;
  3830.  
  3831. darwin* | rhapsody*)
  3832.   dynamic_linker="$host_os dyld"
  3833.   version_type=darwin
  3834.   need_lib_prefix=no
  3835.   need_version=no
  3836.   # FIXME: Relying on posixy $() will cause problems for
  3837.   #        cross-compilation, but unfortunately the echo tests do not
  3838.   #        yet detect zsh echo's removal of \ escapes.
  3839.   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  3840.   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  3841.   shlibpath_overrides_runpath=yes
  3842.   shlibpath_var=DYLD_LIBRARY_PATH
  3843.   ;;
  3844.  
  3845. freebsd1*)
  3846.   dynamic_linker=no
  3847.   ;;
  3848.  
  3849. freebsd*)
  3850.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3851.   version_type=freebsd-$objformat
  3852.   case $version_type in
  3853.     freebsd-elf*)
  3854.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  3855.       need_version=no
  3856.       need_lib_prefix=no
  3857.       ;;
  3858.     freebsd-*)
  3859.       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  3860.       need_version=yes
  3861.       ;;
  3862.   esac
  3863.   shlibpath_var=LD_LIBRARY_PATH
  3864.   case $host_os in
  3865.   freebsd2*)
  3866.     shlibpath_overrides_runpath=yes
  3867.     ;;
  3868.   *)
  3869.     shlibpath_overrides_runpath=no
  3870.     hardcode_into_libs=yes
  3871.     ;;
  3872.   esac
  3873.   ;;
  3874.  
  3875. gnu*)
  3876.   version_type=linux
  3877.   need_lib_prefix=no
  3878.   need_version=no
  3879.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  3880.   soname_spec='${libname}${release}.so$major'
  3881.   shlibpath_var=LD_LIBRARY_PATH
  3882.   hardcode_into_libs=yes
  3883.   ;;
  3884.  
  3885. hpux9* | hpux10* | hpux11*)
  3886.   # Give a soname corresponding to the major version so that dld.sl refuses to
  3887.   # link against other versions.
  3888.   dynamic_linker="$host_os dld.sl"
  3889.   version_type=sunos
  3890.   need_lib_prefix=no
  3891.   need_version=no
  3892.   shlibpath_var=SHLIB_PATH
  3893.   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3894.   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  3895.   soname_spec='${libname}${release}.sl$major'
  3896.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3897.   postinstall_cmds='chmod 555 $lib'
  3898.   ;;
  3899.  
  3900. irix5* | irix6* | nonstopux*)
  3901.   case $host_os in
  3902.     nonstopux*) version_type=nonstopux ;;
  3903.     *)          version_type=irix ;;
  3904.   esac
  3905.   need_lib_prefix=no
  3906.   need_version=no
  3907.   soname_spec='${libname}${release}.so$major'
  3908.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  3909.   case $host_os in
  3910.   irix5* | nonstopux*)
  3911.     libsuff= shlibsuff=
  3912.     ;;
  3913.   *)
  3914.     case $LD in # libtool.m4 will add one of these switches to LD
  3915.     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  3916.     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  3917.     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3918.     *) libsuff= shlibsuff= libmagic=never-match;;
  3919.     esac
  3920.     ;;
  3921.   esac
  3922.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3923.   shlibpath_overrides_runpath=no
  3924.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3925.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3926.   ;;
  3927.  
  3928. # No shared lib support for Linux oldld, aout, or coff.
  3929. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  3930.   dynamic_linker=no
  3931.   ;;
  3932.  
  3933. # This must be Linux ELF.
  3934. linux-gnu*)
  3935.   version_type=linux
  3936.   need_lib_prefix=no
  3937.   need_version=no
  3938.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3939.   soname_spec='${libname}${release}.so$major'
  3940.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3941.   shlibpath_var=LD_LIBRARY_PATH
  3942.   shlibpath_overrides_runpath=no
  3943.   # This implies no fast_install, which is unacceptable.
  3944.   # Some rework will be needed to allow for fast_install
  3945.   # before this can be enabled.
  3946.   hardcode_into_libs=yes
  3947.  
  3948.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  3949.   # powerpc, because MkLinux only supported shared libraries with the
  3950.   # GNU dynamic linker.  Since this was broken with cross compilers,
  3951.   # most powerpc-linux boxes support dynamic linking these days and
  3952.   # people can always --disable-shared, the test was removed, and we
  3953.   # assume the GNU/Linux dynamic linker is in use.
  3954.   dynamic_linker='GNU/Linux ld.so'
  3955.   ;;
  3956.  
  3957. netbsd*)
  3958.   version_type=sunos
  3959.   need_lib_prefix=no
  3960.   need_version=no
  3961.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3962.     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3963.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3964.     dynamic_linker='NetBSD (a.out) ld.so'
  3965.   else
  3966.     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  3967.     soname_spec='${libname}${release}.so$major'
  3968.     dynamic_linker='NetBSD ld.elf_so'
  3969.   fi
  3970.   shlibpath_var=LD_LIBRARY_PATH
  3971.   shlibpath_overrides_runpath=yes
  3972.   hardcode_into_libs=yes
  3973.   ;;
  3974.  
  3975. newsos6)
  3976.   version_type=linux
  3977.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3978.   shlibpath_var=LD_LIBRARY_PATH
  3979.   shlibpath_overrides_runpath=yes
  3980.   ;;
  3981.  
  3982. openbsd*)
  3983.   version_type=sunos
  3984.   need_lib_prefix=no
  3985.   need_version=no
  3986.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3987.     case "$host_os" in
  3988.     openbsd2.[89] | openbsd2.[89].*)
  3989.       shlibpath_overrides_runpath=no
  3990.       ;;
  3991.     *)
  3992.       shlibpath_overrides_runpath=yes
  3993.       ;;
  3994.     esac
  3995.   else
  3996.     shlibpath_overrides_runpath=yes
  3997.   fi
  3998.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3999.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4000.   shlibpath_var=LD_LIBRARY_PATH
  4001.   ;;
  4002.  
  4003. os2*)
  4004.   libname_spec='$name'
  4005.   need_lib_prefix=no
  4006.   library_names_spec='$libname.dll $libname.a'
  4007.   dynamic_linker='OS/2 ld.exe'
  4008.   shlibpath_var=LIBPATH
  4009.   ;;
  4010.  
  4011. osf3* | osf4* | osf5*)
  4012.   version_type=osf
  4013.   need_version=no
  4014.   soname_spec='${libname}${release}.so'
  4015.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  4016.   shlibpath_var=LD_LIBRARY_PATH
  4017.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4018.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4019.   ;;
  4020.  
  4021. sco3.2v5*)
  4022.   version_type=osf
  4023.   soname_spec='${libname}${release}.so$major'
  4024.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4025.   shlibpath_var=LD_LIBRARY_PATH
  4026.   ;;
  4027.  
  4028. solaris*)
  4029.   version_type=linux
  4030.   need_lib_prefix=no
  4031.   need_version=no
  4032.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4033.   soname_spec='${libname}${release}.so$major'
  4034.   shlibpath_var=LD_LIBRARY_PATH
  4035.   shlibpath_overrides_runpath=yes
  4036.   hardcode_into_libs=yes
  4037.   # ldd complains unless libraries are executable
  4038.   postinstall_cmds='chmod +x $lib'
  4039.   ;;
  4040.  
  4041. sunos4*)
  4042.   version_type=sunos
  4043.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  4044.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4045.   shlibpath_var=LD_LIBRARY_PATH
  4046.   shlibpath_overrides_runpath=yes
  4047.   if test "$with_gnu_ld" = yes; then
  4048.     need_lib_prefix=no
  4049.   fi
  4050.   need_version=yes
  4051.   ;;
  4052.  
  4053. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4054.   version_type=linux
  4055.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4056.   soname_spec='${libname}${release}.so$major'
  4057.   shlibpath_var=LD_LIBRARY_PATH
  4058.   case $host_vendor in
  4059.     sni)
  4060.       shlibpath_overrides_runpath=no
  4061.       ;;
  4062.     motorola)
  4063.       need_lib_prefix=no
  4064.       need_version=no
  4065.       shlibpath_overrides_runpath=no
  4066.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4067.       ;;
  4068.   esac
  4069.   ;;
  4070.  
  4071. uts4*)
  4072.   version_type=linux
  4073.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4074.   soname_spec='${libname}${release}.so$major'
  4075.   shlibpath_var=LD_LIBRARY_PATH
  4076.   ;;
  4077.  
  4078. dgux*)
  4079.   version_type=linux
  4080.   need_lib_prefix=no
  4081.   need_version=no
  4082.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4083.   soname_spec='${libname}${release}.so$major'
  4084.   shlibpath_var=LD_LIBRARY_PATH
  4085.   ;;
  4086.  
  4087. sysv4*MP*)
  4088.   if test -d /usr/nec ;then
  4089.     version_type=linux
  4090.     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  4091.     soname_spec='$libname.so.$major'
  4092.     shlibpath_var=LD_LIBRARY_PATH
  4093.   fi
  4094.   ;;
  4095.  
  4096. *)
  4097.   dynamic_linker=no
  4098.   ;;
  4099. esac
  4100. echo "$ac_t""$dynamic_linker" 1>&6
  4101. test "$dynamic_linker" = no && can_build_shared=no
  4102.  
  4103. # Report the final consequences.
  4104. echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  4105. echo "configure:4106: checking if libtool supports shared libraries" >&5
  4106. echo "$ac_t""$can_build_shared" 1>&6
  4107.  
  4108. echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
  4109. echo "configure:4110: checking whether to build shared libraries" >&5
  4110. test "$can_build_shared" = "no" && enable_shared=no
  4111.  
  4112. # On AIX, shared libraries and static libraries use the same namespace, and
  4113. # are all built from PIC.
  4114. case "$host_os" in
  4115. aix3*)
  4116.   test "$enable_shared" = yes && enable_static=no
  4117.   if test -n "$RANLIB"; then
  4118.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4119.     postinstall_cmds='$RANLIB $lib'
  4120.   fi
  4121.   ;;
  4122.  
  4123. aix4*)
  4124.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4125.     test "$enable_shared" = yes && enable_static=no
  4126.   fi
  4127.   ;;
  4128. esac
  4129. echo "$ac_t""$enable_shared" 1>&6
  4130.  
  4131. echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
  4132. echo "configure:4133: checking whether to build static libraries" >&5
  4133. # Make sure either enable_shared or enable_static is yes.
  4134. test "$enable_shared" = yes || enable_static=yes
  4135. echo "$ac_t""$enable_static" 1>&6
  4136.  
  4137. if test "$hardcode_action" = relink; then
  4138.   # Fast installation is not supported
  4139.   enable_fast_install=no
  4140. elif test "$shlibpath_overrides_runpath" = yes ||
  4141.      test "$enable_shared" = no; then
  4142.   # Fast installation is not necessary
  4143.   enable_fast_install=needless
  4144. fi
  4145.  
  4146. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4147. if test "$GCC" = yes; then
  4148.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4149. fi
  4150.  
  4151. if test "x$enable_dlopen" != xyes; then
  4152.   enable_dlopen=unknown
  4153.   enable_dlopen_self=unknown
  4154.   enable_dlopen_self_static=unknown
  4155. else
  4156.   lt_cv_dlopen=no
  4157.   lt_cv_dlopen_libs=
  4158.  
  4159.   case $host_os in
  4160.   beos*)
  4161.     lt_cv_dlopen="load_add_on"
  4162.     lt_cv_dlopen_libs=
  4163.     lt_cv_dlopen_self=yes
  4164.     ;;
  4165.  
  4166.   cygwin* | mingw* | pw32*)
  4167.     lt_cv_dlopen="LoadLibrary"
  4168.     lt_cv_dlopen_libs=
  4169.    ;;
  4170.  
  4171.   *)
  4172.     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  4173. echo "configure:4174: checking for shl_load" >&5
  4174. if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  4175.   echo $ac_n "(cached) $ac_c" 1>&6
  4176. else
  4177.   cat > conftest.$ac_ext <<EOF
  4178. #line 4179 "configure"
  4179. #include "confdefs.h"
  4180. /* System header to define __stub macros and hopefully few prototypes,
  4181.     which can conflict with char shl_load(); below.  */
  4182. #include <assert.h>
  4183. /* Override any gcc2 internal prototype to avoid an error.  */
  4184. /* We use char because int might match the return type of a gcc2
  4185.     builtin and then its argument prototype would still apply.  */
  4186. char shl_load();
  4187.  
  4188. int main() {
  4189.  
  4190. /* The GNU C library defines this for functions which it implements
  4191.     to always fail with ENOSYS.  Some functions are actually named
  4192.     something starting with __ and the normal name is an alias.  */
  4193. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  4194. choke me
  4195. #else
  4196. shl_load();
  4197. #endif
  4198.  
  4199. ; return 0; }
  4200. EOF
  4201. if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4202.   rm -rf conftest*
  4203.   eval "ac_cv_func_shl_load=yes"
  4204. else
  4205.   echo "configure: failed program was:" >&5
  4206.   cat conftest.$ac_ext >&5
  4207.   rm -rf conftest*
  4208.   eval "ac_cv_func_shl_load=no"
  4209. fi
  4210. rm -f conftest*
  4211. fi
  4212.  
  4213. if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  4214.   echo "$ac_t""yes" 1>&6
  4215.   lt_cv_dlopen="shl_load"
  4216. else
  4217.   echo "$ac_t""no" 1>&6
  4218. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  4219. echo "configure:4220: checking for shl_load in -ldld" >&5
  4220. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  4221. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4222.   echo $ac_n "(cached) $ac_c" 1>&6
  4223. else
  4224.   ac_save_LIBS="$LIBS"
  4225. LIBS="-ldld  $LIBS"
  4226. cat > conftest.$ac_ext <<EOF
  4227. #line 4228 "configure"
  4228. #include "confdefs.h"
  4229. /* Override any gcc2 internal prototype to avoid an error.  */
  4230. /* We use char because int might match the return type of a gcc2
  4231.     builtin and then its argument prototype would still apply.  */
  4232. char shl_load();
  4233.  
  4234. int main() {
  4235. shl_load()
  4236. ; return 0; }
  4237. EOF
  4238. if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4239.   rm -rf conftest*
  4240.   eval "ac_cv_lib_$ac_lib_var=yes"
  4241. else
  4242.   echo "configure: failed program was:" >&5
  4243.   cat conftest.$ac_ext >&5
  4244.   rm -rf conftest*
  4245.   eval "ac_cv_lib_$ac_lib_var=no"
  4246. fi
  4247. rm -f conftest*
  4248. LIBS="$ac_save_LIBS"
  4249.  
  4250. fi
  4251. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4252.   echo "$ac_t""yes" 1>&6
  4253.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  4254. else
  4255.   echo "$ac_t""no" 1>&6
  4256. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  4257. echo "configure:4258: checking for dlopen" >&5
  4258. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  4259.   echo $ac_n "(cached) $ac_c" 1>&6
  4260. else
  4261.   cat > conftest.$ac_ext <<EOF
  4262. #line 4263 "configure"
  4263. #include "confdefs.h"
  4264. /* System header to define __stub macros and hopefully few prototypes,
  4265.     which can conflict with char dlopen(); below.  */
  4266. #include <assert.h>
  4267. /* Override any gcc2 internal prototype to avoid an error.  */
  4268. /* We use char because int might match the return type of a gcc2
  4269.     builtin and then its argument prototype would still apply.  */
  4270. char dlopen();
  4271.  
  4272. int main() {
  4273.  
  4274. /* The GNU C library defines this for functions which it implements
  4275.     to always fail with ENOSYS.  Some functions are actually named
  4276.     something starting with __ and the normal name is an alias.  */
  4277. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  4278. choke me
  4279. #else
  4280. dlopen();
  4281. #endif
  4282.  
  4283. ; return 0; }
  4284. EOF
  4285. if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4286.   rm -rf conftest*
  4287.   eval "ac_cv_func_dlopen=yes"
  4288. else
  4289.   echo "configure: failed program was:" >&5
  4290.   cat conftest.$ac_ext >&5
  4291.   rm -rf conftest*
  4292.   eval "ac_cv_func_dlopen=no"
  4293. fi
  4294. rm -f conftest*
  4295. fi
  4296.  
  4297. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  4298.   echo "$ac_t""yes" 1>&6
  4299.   lt_cv_dlopen="dlopen"
  4300. else
  4301.   echo "$ac_t""no" 1>&6
  4302. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  4303. echo "configure:4304: checking for dlopen in -ldl" >&5
  4304. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  4305. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4306.   echo $ac_n "(cached) $ac_c" 1>&6
  4307. else
  4308.   ac_save_LIBS="$LIBS"
  4309. LIBS="-ldl  $LIBS"
  4310. cat > conftest.$ac_ext <<EOF
  4311. #line 4312 "configure"
  4312. #include "confdefs.h"
  4313. /* Override any gcc2 internal prototype to avoid an error.  */
  4314. /* We use char because int might match the return type of a gcc2
  4315.     builtin and then its argument prototype would still apply.  */
  4316. char dlopen();
  4317.  
  4318. int main() {
  4319. dlopen()
  4320. ; return 0; }
  4321. EOF
  4322. if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4323.   rm -rf conftest*
  4324.   eval "ac_cv_lib_$ac_lib_var=yes"
  4325. else
  4326.   echo "configure: failed program was:" >&5
  4327.   cat conftest.$ac_ext >&5
  4328.   rm -rf conftest*
  4329.   eval "ac_cv_lib_$ac_lib_var=no"
  4330. fi
  4331. rm -f conftest*
  4332. LIBS="$ac_save_LIBS"
  4333.  
  4334. fi
  4335. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4336.   echo "$ac_t""yes" 1>&6
  4337.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  4338. else
  4339.   echo "$ac_t""no" 1>&6
  4340. echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  4341. echo "configure:4342: checking for dlopen in -lsvld" >&5
  4342. ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  4343. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4344.   echo $ac_n "(cached) $ac_c" 1>&6
  4345. else
  4346.   ac_save_LIBS="$LIBS"
  4347. LIBS="-lsvld  $LIBS"
  4348. cat > conftest.$ac_ext <<EOF
  4349. #line 4350 "configure"
  4350. #include "confdefs.h"
  4351. /* Override any gcc2 internal prototype to avoid an error.  */
  4352. /* We use char because int might match the return type of a gcc2
  4353.     builtin and then its argument prototype would still apply.  */
  4354. char dlopen();
  4355.  
  4356. int main() {
  4357. dlopen()
  4358. ; return 0; }
  4359. EOF
  4360. if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4361.   rm -rf conftest*
  4362.   eval "ac_cv_lib_$ac_lib_var=yes"
  4363. else
  4364.   echo "configure: failed program was:" >&5
  4365.   cat conftest.$ac_ext >&5
  4366.   rm -rf conftest*
  4367.   eval "ac_cv_lib_$ac_lib_var=no"
  4368. fi
  4369. rm -f conftest*
  4370. LIBS="$ac_save_LIBS"
  4371.  
  4372. fi
  4373. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4374.   echo "$ac_t""yes" 1>&6
  4375.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  4376. else
  4377.   echo "$ac_t""no" 1>&6
  4378. echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  4379. echo "configure:4380: checking for dld_link in -ldld" >&5
  4380. ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  4381. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4382.   echo $ac_n "(cached) $ac_c" 1>&6
  4383. else
  4384.   ac_save_LIBS="$LIBS"
  4385. LIBS="-ldld  $LIBS"
  4386. cat > conftest.$ac_ext <<EOF
  4387. #line 4388 "configure"
  4388. #include "confdefs.h"
  4389. /* Override any gcc2 internal prototype to avoid an error.  */
  4390. /* We use char because int might match the return type of a gcc2
  4391.     builtin and then its argument prototype would still apply.  */
  4392. char dld_link();
  4393.  
  4394. int main() {
  4395. dld_link()
  4396. ; return 0; }
  4397. EOF
  4398. if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4399.   rm -rf conftest*
  4400.   eval "ac_cv_lib_$ac_lib_var=yes"
  4401. else
  4402.   echo "configure: failed program was:" >&5
  4403.   cat conftest.$ac_ext >&5
  4404.   rm -rf conftest*
  4405.   eval "ac_cv_lib_$ac_lib_var=no"
  4406. fi
  4407. rm -f conftest*
  4408. LIBS="$ac_save_LIBS"
  4409.  
  4410. fi
  4411. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4412.   echo "$ac_t""yes" 1>&6
  4413.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  4414. else
  4415.   echo "$ac_t""no" 1>&6
  4416. fi
  4417.  
  4418.           
  4419. fi
  4420.  
  4421.         
  4422. fi
  4423.  
  4424.       
  4425. fi
  4426.  
  4427.     
  4428. fi
  4429.  
  4430.       
  4431. fi
  4432.  
  4433.     ;;
  4434.   esac
  4435.  
  4436.   if test "x$lt_cv_dlopen" != xno; then
  4437.     enable_dlopen=yes
  4438.   else
  4439.     enable_dlopen=no
  4440.   fi
  4441.  
  4442.   case $lt_cv_dlopen in
  4443.   dlopen)
  4444.     save_CPPFLAGS="$CPPFLAGS"
  4445.         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  4446.  
  4447.     save_LDFLAGS="$LDFLAGS"
  4448.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  4449.  
  4450.     save_LIBS="$LIBS"
  4451.     LIBS="$lt_cv_dlopen_libs $LIBS"
  4452.  
  4453.     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  4454. echo "configure:4455: checking whether a program can dlopen itself" >&5
  4455. if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  4456.   echo $ac_n "(cached) $ac_c" 1>&6
  4457. else
  4458.         if test "$cross_compiling" = yes; then :
  4459.   lt_cv_dlopen_self=cross
  4460. else
  4461.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4462.   lt_status=$lt_dlunknown
  4463.   cat > conftest.$ac_ext <<EOF
  4464. #line 4465 "configure"
  4465. #include "confdefs.h"
  4466.  
  4467. #if HAVE_DLFCN_H
  4468. #include <dlfcn.h>
  4469. #endif
  4470.  
  4471. #include <stdio.h>
  4472.  
  4473. #ifdef RTLD_GLOBAL
  4474. #  define LT_DLGLOBAL        RTLD_GLOBAL
  4475. #else
  4476. #  ifdef DL_GLOBAL
  4477. #    define LT_DLGLOBAL        DL_GLOBAL
  4478. #  else
  4479. #    define LT_DLGLOBAL        0
  4480. #  endif
  4481. #endif
  4482.  
  4483. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4484.    find out it does not work in some platform. */
  4485. #ifndef LT_DLLAZY_OR_NOW
  4486. #  ifdef RTLD_LAZY
  4487. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  4488. #  else
  4489. #    ifdef DL_LAZY
  4490. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  4491. #    else
  4492. #      ifdef RTLD_NOW
  4493. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  4494. #      else
  4495. #        ifdef DL_NOW
  4496. #          define LT_DLLAZY_OR_NOW    DL_NOW
  4497. #        else
  4498. #          define LT_DLLAZY_OR_NOW    0
  4499. #        endif
  4500. #      endif
  4501. #    endif
  4502. #  endif
  4503. #endif
  4504.  
  4505. #ifdef __cplusplus
  4506. extern "C" void exit (int);
  4507. #endif
  4508.  
  4509. void fnord() { int i=42;}
  4510. int main ()
  4511. {
  4512.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4513.   int status = $lt_dlunknown;
  4514.  
  4515.   if (self)
  4516.     {
  4517.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  4518.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4519.       /* dlclose (self); */
  4520.     }
  4521.  
  4522.     exit (status);
  4523. }
  4524. EOF
  4525.   if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4526.     (./conftest; exit; ) 2>/dev/null
  4527.     lt_status=$?
  4528.     case x$lt_status in
  4529.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  4530.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  4531.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  4532.     esac
  4533.   else :
  4534.     # compilation failed
  4535.     lt_cv_dlopen_self=no
  4536.   fi
  4537. fi
  4538. rm -fr conftest*
  4539.  
  4540.     
  4541. fi
  4542.  
  4543. echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  4544.  
  4545.     if test "x$lt_cv_dlopen_self" = xyes; then
  4546.       LDFLAGS="$LDFLAGS $link_static_flag"
  4547.       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  4548. echo "configure:4549: checking whether a statically linked program can dlopen itself" >&5
  4549. if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  4550.   echo $ac_n "(cached) $ac_c" 1>&6
  4551. else
  4552.         if test "$cross_compiling" = yes; then :
  4553.   lt_cv_dlopen_self_static=cross
  4554. else
  4555.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4556.   lt_status=$lt_dlunknown
  4557.   cat > conftest.$ac_ext <<EOF
  4558. #line 4559 "configure"
  4559. #include "confdefs.h"
  4560.  
  4561. #if HAVE_DLFCN_H
  4562. #include <dlfcn.h>
  4563. #endif
  4564.  
  4565. #include <stdio.h>
  4566.  
  4567. #ifdef RTLD_GLOBAL
  4568. #  define LT_DLGLOBAL        RTLD_GLOBAL
  4569. #else
  4570. #  ifdef DL_GLOBAL
  4571. #    define LT_DLGLOBAL        DL_GLOBAL
  4572. #  else
  4573. #    define LT_DLGLOBAL        0
  4574. #  endif
  4575. #endif
  4576.  
  4577. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4578.    find out it does not work in some platform. */
  4579. #ifndef LT_DLLAZY_OR_NOW
  4580. #  ifdef RTLD_LAZY
  4581. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  4582. #  else
  4583. #    ifdef DL_LAZY
  4584. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  4585. #    else
  4586. #      ifdef RTLD_NOW
  4587. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  4588. #      else
  4589. #        ifdef DL_NOW
  4590. #          define LT_DLLAZY_OR_NOW    DL_NOW
  4591. #        else
  4592. #          define LT_DLLAZY_OR_NOW    0
  4593. #        endif
  4594. #      endif
  4595. #    endif
  4596. #  endif
  4597. #endif
  4598.  
  4599. #ifdef __cplusplus
  4600. extern "C" void exit (int);
  4601. #endif
  4602.  
  4603. void fnord() { int i=42;}
  4604. int main ()
  4605. {
  4606.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4607.   int status = $lt_dlunknown;
  4608.  
  4609.   if (self)
  4610.     {
  4611.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  4612.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4613.       /* dlclose (self); */
  4614.     }
  4615.  
  4616.     exit (status);
  4617. }
  4618. EOF
  4619.   if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4620.     (./conftest; exit; ) 2>/dev/null
  4621.     lt_status=$?
  4622.     case x$lt_status in
  4623.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  4624.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  4625.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  4626.     esac
  4627.   else :
  4628.     # compilation failed
  4629.     lt_cv_dlopen_self_static=no
  4630.   fi
  4631. fi
  4632. rm -fr conftest*
  4633.  
  4634.       
  4635. fi
  4636.  
  4637. echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  4638.     fi
  4639.  
  4640.     CPPFLAGS="$save_CPPFLAGS"
  4641.     LDFLAGS="$save_LDFLAGS"
  4642.     LIBS="$save_LIBS"
  4643.     ;;
  4644.   esac
  4645.  
  4646.   case $lt_cv_dlopen_self in
  4647.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  4648.   *) enable_dlopen_self=unknown ;;
  4649.   esac
  4650.  
  4651.   case $lt_cv_dlopen_self_static in
  4652.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  4653.   *) enable_dlopen_self_static=unknown ;;
  4654.   esac
  4655. fi
  4656.  
  4657.  
  4658. if test "$enable_shared" = yes && test "$GCC" = yes; then
  4659.   case $archive_cmds in
  4660.   *'~'*)
  4661.     # FIXME: we may have to deal with multi-command sequences.
  4662.     ;;
  4663.   '$CC '*)
  4664.     # Test whether the compiler implicitly links with -lc since on some
  4665.     # systems, -lgcc has to come before -lc. If gcc already passes -lc
  4666.     # to ld, don't add -lc before -lgcc.
  4667.     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  4668. echo "configure:4669: checking whether -lc should be explicitly linked in" >&5
  4669.     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  4670.   echo $ac_n "(cached) $ac_c" 1>&6
  4671. else
  4672.   $rm conftest*
  4673.     echo 'static int dummy;' > conftest.$ac_ext
  4674.  
  4675.     if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4676.       soname=conftest
  4677.       lib=conftest
  4678.       libobjs=conftest.$ac_objext
  4679.       deplibs=
  4680.       wl=$lt_cv_prog_cc_wl
  4681.       compiler_flags=-v
  4682.       linker_flags=-v
  4683.       verstring=
  4684.       output_objdir=.
  4685.       libname=conftest
  4686.       save_allow_undefined_flag=$allow_undefined_flag
  4687.       allow_undefined_flag=
  4688.       if { (eval echo configure:4689: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
  4689.       then
  4690.     lt_cv_archive_cmds_need_lc=no
  4691.       else
  4692.     lt_cv_archive_cmds_need_lc=yes
  4693.       fi
  4694.       allow_undefined_flag=$save_allow_undefined_flag
  4695.     else
  4696.       cat conftest.err 1>&5
  4697.     fi
  4698. fi
  4699.  
  4700.     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  4701.     ;;
  4702.   esac
  4703. fi
  4704. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  4705.  
  4706. # The second clause should only fire when bootstrapping the
  4707. # libtool distribution, otherwise you forgot to ship ltmain.sh
  4708. # with your package, and you will get complaints that there are
  4709. # no rules to generate ltmain.sh.
  4710. if test -f "$ltmain"; then
  4711.   :
  4712. else
  4713.   # If there is no Makefile yet, we rely on a make rule to execute
  4714.   # `config.status --recheck' to rerun these tests and create the
  4715.   # libtool script then.
  4716.   test -f Makefile && make "$ltmain"
  4717. fi
  4718.  
  4719. if test -f "$ltmain"; then
  4720.   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  4721.   $rm -f "${ofile}T"
  4722.  
  4723.   echo creating $ofile
  4724.  
  4725.   # Now quote all the things that may contain metacharacters while being
  4726.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  4727.   # variables and quote the copies for generation of the libtool script.
  4728.   for var in echo old_CC old_CFLAGS \
  4729.     AR AR_FLAGS CC LD LN_S NM SHELL \
  4730.     reload_flag reload_cmds wl \
  4731.     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  4732.     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  4733.     library_names_spec soname_spec \
  4734.     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  4735.     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  4736.     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  4737.     old_striplib striplib file_magic_cmd export_symbols_cmds \
  4738.     deplibs_check_method allow_undefined_flag no_undefined_flag \
  4739.     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  4740.     global_symbol_to_c_name_address \
  4741.     hardcode_libdir_flag_spec hardcode_libdir_separator  \
  4742.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4743.     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  4744.  
  4745.     case $var in
  4746.     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  4747.     old_postinstall_cmds | old_postuninstall_cmds | \
  4748.     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  4749.     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  4750.     postinstall_cmds | postuninstall_cmds | \
  4751.     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4752.       # Double-quote double-evaled strings.
  4753.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4754.       ;;
  4755.     *)
  4756.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4757.       ;;
  4758.     esac
  4759.   done
  4760.  
  4761.   cat <<__EOF__ > "${ofile}T"
  4762. #! $SHELL
  4763.  
  4764. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4765. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4766. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4767. #
  4768. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  4769. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4770. #
  4771. # This program is free software; you can redistribute it and/or modify
  4772. # it under the terms of the GNU General Public License as published by
  4773. # the Free Software Foundation; either version 2 of the License, or
  4774. # (at your option) any later version.
  4775. #
  4776. # This program is distributed in the hope that it will be useful, but
  4777. # WITHOUT ANY WARRANTY; without even the implied warranty of
  4778. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  4779. # General Public License for more details.
  4780. #
  4781. # You should have received a copy of the GNU General Public License
  4782. # along with this program; if not, write to the Free Software
  4783. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4784. #
  4785. # As a special exception to the GNU General Public License, if you
  4786. # distribute this file as part of a program that contains a
  4787. # configuration script generated by Autoconf, you may include it under
  4788. # the same distribution terms that you use for the rest of that program.
  4789.  
  4790. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4791. Xsed="sed -e s/^X//"
  4792.  
  4793. # The HP-UX ksh and POSIX shell print the target directory to stdout
  4794. # if CDPATH is set.
  4795. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  4796.  
  4797. # ### BEGIN LIBTOOL CONFIG
  4798.  
  4799. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4800.  
  4801. # Shell to use when invoking shell scripts.
  4802. SHELL=$lt_SHELL
  4803.  
  4804. # Whether or not to build shared libraries.
  4805. build_libtool_libs=$enable_shared
  4806.  
  4807. # Whether or not to build static libraries.
  4808. build_old_libs=$enable_static
  4809.  
  4810. # Whether or not to add -lc for building shared libraries.
  4811. build_libtool_need_lc=$need_lc
  4812.  
  4813. # Whether or not to optimize for fast installation.
  4814. fast_install=$enable_fast_install
  4815.  
  4816. # The host system.
  4817. host_alias=$host_alias
  4818. host=$host
  4819.  
  4820. # An echo program that does not interpret backslashes.
  4821. echo=$lt_echo
  4822.  
  4823. # The archiver.
  4824. AR=$lt_AR
  4825. AR_FLAGS=$lt_AR_FLAGS
  4826.  
  4827. # The default C compiler.
  4828. CC=$lt_CC
  4829.  
  4830. # Is the compiler the GNU C compiler?
  4831. with_gcc=$GCC
  4832.  
  4833. # The linker used to build libraries.
  4834. LD=$lt_LD
  4835.  
  4836. # Whether we need hard or soft links.
  4837. LN_S=$lt_LN_S
  4838.  
  4839. # A BSD-compatible nm program.
  4840. NM=$lt_NM
  4841.  
  4842. # A symbol stripping program
  4843. STRIP=$STRIP
  4844.  
  4845. # Used to examine libraries when file_magic_cmd begins "file"
  4846. MAGIC_CMD=$MAGIC_CMD
  4847.  
  4848. # Used on cygwin: DLL creation program.
  4849. DLLTOOL="$DLLTOOL"
  4850.  
  4851. # Used on cygwin: object dumper.
  4852. OBJDUMP="$OBJDUMP"
  4853.  
  4854. # Used on cygwin: assembler.
  4855. AS="$AS"
  4856.  
  4857. # The name of the directory that contains temporary libtool files.
  4858. objdir=$objdir
  4859.  
  4860. # How to create reloadable object files.
  4861. reload_flag=$lt_reload_flag
  4862. reload_cmds=$lt_reload_cmds
  4863.  
  4864. # How to pass a linker flag through the compiler.
  4865. wl=$lt_wl
  4866.  
  4867. # Object file suffix (normally "o").
  4868. objext="$ac_objext"
  4869.  
  4870. # Old archive suffix (normally "a").
  4871. libext="$libext"
  4872.  
  4873. # Executable file suffix (normally "").
  4874. exeext="$exeext"
  4875.  
  4876. # Additional compiler flags for building library objects.
  4877. pic_flag=$lt_pic_flag
  4878. pic_mode=$pic_mode
  4879.  
  4880. # Does compiler simultaneously support -c and -o options?
  4881. compiler_c_o=$lt_compiler_c_o
  4882.  
  4883. # Can we write directly to a .lo ?
  4884. compiler_o_lo=$lt_compiler_o_lo
  4885.  
  4886. # Must we lock files when doing compilation ?
  4887. need_locks=$lt_need_locks
  4888.  
  4889. # Do we need the lib prefix for modules?
  4890. need_lib_prefix=$need_lib_prefix
  4891.  
  4892. # Do we need a version for libraries?
  4893. need_version=$need_version
  4894.  
  4895. # Whether dlopen is supported.
  4896. dlopen_support=$enable_dlopen
  4897.  
  4898. # Whether dlopen of programs is supported.
  4899. dlopen_self=$enable_dlopen_self
  4900.  
  4901. # Whether dlopen of statically linked programs is supported.
  4902. dlopen_self_static=$enable_dlopen_self_static
  4903.  
  4904. # Compiler flag to prevent dynamic linking.
  4905. link_static_flag=$lt_link_static_flag
  4906.  
  4907. # Compiler flag to turn off builtin functions.
  4908. no_builtin_flag=$lt_no_builtin_flag
  4909.  
  4910. # Compiler flag to allow reflexive dlopens.
  4911. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  4912.  
  4913. # Compiler flag to generate shared objects directly from archives.
  4914. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  4915.  
  4916. # Compiler flag to generate thread-safe objects.
  4917. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  4918.  
  4919. # Library versioning type.
  4920. version_type=$version_type
  4921.  
  4922. # Format of library name prefix.
  4923. libname_spec=$lt_libname_spec
  4924.  
  4925. # List of archive names.  First name is the real one, the rest are links.
  4926. # The last name is the one that the linker finds with -lNAME.
  4927. library_names_spec=$lt_library_names_spec
  4928.  
  4929. # The coded name of the library, if different from the real name.
  4930. soname_spec=$lt_soname_spec
  4931.  
  4932. # Commands used to build and install an old-style archive.
  4933. RANLIB=$lt_RANLIB
  4934. old_archive_cmds=$lt_old_archive_cmds
  4935. old_postinstall_cmds=$lt_old_postinstall_cmds
  4936. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4937.  
  4938. # Create an old-style archive from a shared archive.
  4939. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  4940.  
  4941. # Create a temporary old-style archive to link instead of a shared archive.
  4942. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  4943.  
  4944. # Commands used to build and install a shared archive.
  4945. archive_cmds=$lt_archive_cmds
  4946. archive_expsym_cmds=$lt_archive_expsym_cmds
  4947. postinstall_cmds=$lt_postinstall_cmds
  4948. postuninstall_cmds=$lt_postuninstall_cmds
  4949.  
  4950. # Commands to strip libraries.
  4951. old_striplib=$lt_old_striplib
  4952. striplib=$lt_striplib
  4953.  
  4954. # Method to check whether dependent libraries are shared objects.
  4955. deplibs_check_method=$lt_deplibs_check_method
  4956.  
  4957. # Command to use when deplibs_check_method == file_magic.
  4958. file_magic_cmd=$lt_file_magic_cmd
  4959.  
  4960. # Flag that allows shared libraries with undefined symbols to be built.
  4961. allow_undefined_flag=$lt_allow_undefined_flag
  4962.  
  4963. # Flag that forces no undefined symbols.
  4964. no_undefined_flag=$lt_no_undefined_flag
  4965.  
  4966. # Commands used to finish a libtool library installation in a directory.
  4967. finish_cmds=$lt_finish_cmds
  4968.  
  4969. # Same as above, but a single script fragment to be evaled but not shown.
  4970. finish_eval=$lt_finish_eval
  4971.  
  4972. # Take the output of nm and produce a listing of raw symbols and C names.
  4973. global_symbol_pipe=$lt_global_symbol_pipe
  4974.  
  4975. # Transform the output of nm in a proper C declaration
  4976. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  4977.  
  4978. # Transform the output of nm in a C name address pair
  4979. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  4980.  
  4981. # This is the shared library runtime path variable.
  4982. runpath_var=$runpath_var
  4983.  
  4984. # This is the shared library path variable.
  4985. shlibpath_var=$shlibpath_var
  4986.  
  4987. # Is shlibpath searched before the hard-coded library search path?
  4988. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4989.  
  4990. # How to hardcode a shared library path into an executable.
  4991. hardcode_action=$hardcode_action
  4992.  
  4993. # Whether we should hardcode library paths into libraries.
  4994. hardcode_into_libs=$hardcode_into_libs
  4995.  
  4996. # Flag to hardcode \$libdir into a binary during linking.
  4997. # This must work even if \$libdir does not exist.
  4998. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  4999.  
  5000. # Whether we need a single -rpath flag with a separated argument.
  5001. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  5002.  
  5003. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  5004. # resulting binary.
  5005. hardcode_direct=$hardcode_direct
  5006.  
  5007. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  5008. # resulting binary.
  5009. hardcode_minus_L=$hardcode_minus_L
  5010.  
  5011. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  5012. # the resulting binary.
  5013. hardcode_shlibpath_var=$hardcode_shlibpath_var
  5014.  
  5015. # Variables whose values should be saved in libtool wrapper scripts and
  5016. # restored at relink time.
  5017. variables_saved_for_relink="$variables_saved_for_relink"
  5018.  
  5019. # Whether libtool must link a program against all its dependency libraries.
  5020. link_all_deplibs=$link_all_deplibs
  5021.  
  5022. # Compile-time system search path for libraries
  5023. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  5024.  
  5025. # Run-time system search path for libraries
  5026. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  5027.  
  5028. # Fix the shell variable \$srcfile for the compiler.
  5029. fix_srcfile_path="$fix_srcfile_path"
  5030.  
  5031. # Set to yes if exported symbols are required.
  5032. always_export_symbols=$always_export_symbols
  5033.  
  5034. # The commands to list exported symbols.
  5035. export_symbols_cmds=$lt_export_symbols_cmds
  5036.  
  5037. # The commands to extract the exported symbol list from a shared archive.
  5038. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  5039.  
  5040. # Symbols that should not be listed in the preloaded symbols.
  5041. exclude_expsyms=$lt_exclude_expsyms
  5042.  
  5043. # Symbols that must always be exported.
  5044. include_expsyms=$lt_include_expsyms
  5045.  
  5046. # ### END LIBTOOL CONFIG
  5047.  
  5048. __EOF__
  5049.  
  5050.   case $host_os in
  5051.   aix3*)
  5052.     cat <<\EOF >> "${ofile}T"
  5053.  
  5054. # AIX sometimes has problems with the GCC collect2 program.  For some
  5055. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5056. # vanish in a puff of smoke.
  5057. if test "X${COLLECT_NAMES+set}" != Xset; then
  5058.   COLLECT_NAMES=
  5059.   export COLLECT_NAMES
  5060. fi
  5061. EOF
  5062.     ;;
  5063.   esac
  5064.  
  5065.   case $host_os in
  5066.   cygwin* | mingw* | pw32* | os2*)
  5067.     cat <<'EOF' >> "${ofile}T"
  5068.       # This is a source program that is used to create dlls on Windows
  5069.       # Don't remove nor modify the starting and closing comments
  5070. # /* ltdll.c starts here */
  5071. # #define WIN32_LEAN_AND_MEAN
  5072. # #include <windows.h>
  5073. # #undef WIN32_LEAN_AND_MEAN
  5074. # #include <stdio.h>
  5075. #
  5076. # #ifndef __CYGWIN__
  5077. # #  ifdef __CYGWIN32__
  5078. # #    define __CYGWIN__ __CYGWIN32__
  5079. # #  endif
  5080. # #endif
  5081. #
  5082. # #ifdef __cplusplus
  5083. # extern "C" {
  5084. # #endif
  5085. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5086. # #ifdef __cplusplus
  5087. # }
  5088. # #endif
  5089. #
  5090. # #ifdef __CYGWIN__
  5091. # #include <cygwin/cygwin_dll.h>
  5092. # DECLARE_CYGWIN_DLL( DllMain );
  5093. # #endif
  5094. # HINSTANCE __hDllInstance_base;
  5095. #
  5096. # BOOL APIENTRY
  5097. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5098. # {
  5099. #   __hDllInstance_base = hInst;
  5100. #   return TRUE;
  5101. # }
  5102. # /* ltdll.c ends here */
  5103.     # This is a source program that is used to create import libraries
  5104.     # on Windows for dlls which lack them. Don't remove nor modify the
  5105.     # starting and closing comments
  5106. # /* impgen.c starts here */
  5107. # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
  5108. #
  5109. #  This file is part of GNU libtool.
  5110. #
  5111. #  This program is free software; you can redistribute it and/or modify
  5112. #  it under the terms of the GNU General Public License as published by
  5113. #  the Free Software Foundation; either version 2 of the License, or
  5114. #  (at your option) any later version.
  5115. #
  5116. #  This program is distributed in the hope that it will be useful,
  5117. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  5118. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  5119. #  GNU General Public License for more details.
  5120. #
  5121. #  You should have received a copy of the GNU General Public License
  5122. #  along with this program; if not, write to the Free Software
  5123. #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  5124. #  */
  5125. #
  5126. # #include <stdio.h>        /* for printf() */
  5127. # #include <unistd.h>        /* for open(), lseek(), read() */
  5128. # #include <fcntl.h>        /* for O_RDONLY, O_BINARY */
  5129. # #include <string.h>        /* for strdup() */
  5130. #
  5131. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  5132. # #ifndef O_BINARY
  5133. # #define O_BINARY 0
  5134. # #endif
  5135. #
  5136. # static unsigned int
  5137. # pe_get16 (fd, offset)
  5138. #      int fd;
  5139. #      int offset;
  5140. # {
  5141. #   unsigned char b[2];
  5142. #   lseek (fd, offset, SEEK_SET);
  5143. #   read (fd, b, 2);
  5144. #   return b[0] + (b[1]<<8);
  5145. # }
  5146. #
  5147. # static unsigned int
  5148. # pe_get32 (fd, offset)
  5149. #     int fd;
  5150. #     int offset;
  5151. # {
  5152. #   unsigned char b[4];
  5153. #   lseek (fd, offset, SEEK_SET);
  5154. #   read (fd, b, 4);
  5155. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  5156. # }
  5157. #
  5158. # static unsigned int
  5159. # pe_as32 (ptr)
  5160. #      void *ptr;
  5161. # {
  5162. #   unsigned char *b = ptr;
  5163. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  5164. # }
  5165. #
  5166. # int
  5167. # main (argc, argv)
  5168. #     int argc;
  5169. #     char *argv[];
  5170. # {
  5171. #     int dll;
  5172. #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  5173. #     unsigned long export_rva, export_size, nsections, secptr, expptr;
  5174. #     unsigned long name_rvas, nexp;
  5175. #     unsigned char *expdata, *erva;
  5176. #     char *filename, *dll_name;
  5177. #
  5178. #     filename = argv[1];
  5179. #
  5180. #     dll = open(filename, O_RDONLY|O_BINARY);
  5181. #     if (dll < 1)
  5182. #     return 1;
  5183. #
  5184. #     dll_name = filename;
  5185. #
  5186. #     for (i=0; filename[i]; i++)
  5187. #     if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
  5188. #         dll_name = filename + i +1;
  5189. #
  5190. #     pe_header_offset = pe_get32 (dll, 0x3c);
  5191. #     opthdr_ofs = pe_header_offset + 4 + 20;
  5192. #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
  5193. #
  5194. #     if (num_entries < 1) /* no exports */
  5195. #     return 1;
  5196. #
  5197. #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
  5198. #     export_size = pe_get32 (dll, opthdr_ofs + 100);
  5199. #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  5200. #     secptr = (pe_header_offset + 4 + 20 +
  5201. #           pe_get16 (dll, pe_header_offset + 4 + 16));
  5202. #
  5203. #     expptr = 0;
  5204. #     for (i = 0; i < nsections; i++)
  5205. #     {
  5206. #     char sname[8];
  5207. #     unsigned long secptr1 = secptr + 40 * i;
  5208. #     unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  5209. #     unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  5210. #     unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  5211. #     lseek(dll, secptr1, SEEK_SET);
  5212. #     read(dll, sname, 8);
  5213. #     if (vaddr <= export_rva && vaddr+vsize > export_rva)
  5214. #     {
  5215. #         expptr = fptr + (export_rva - vaddr);
  5216. #         if (export_rva + export_size > vaddr + vsize)
  5217. #         export_size = vsize - (export_rva - vaddr);
  5218. #         break;
  5219. #     }
  5220. #     }
  5221. #
  5222. #     expdata = (unsigned char*)malloc(export_size);
  5223. #     lseek (dll, expptr, SEEK_SET);
  5224. #     read (dll, expdata, export_size);
  5225. #     erva = expdata - export_rva;
  5226. #
  5227. #     nexp = pe_as32 (expdata+24);
  5228. #     name_rvas = pe_as32 (expdata+32);
  5229. #
  5230. #     printf ("EXPORTS\n");
  5231. #     for (i = 0; i<nexp; i++)
  5232. #     {
  5233. #     unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  5234. #     printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  5235. #     }
  5236. #
  5237. #     return 0;
  5238. # }
  5239. # /* impgen.c ends here */
  5240.  
  5241. EOF
  5242.     ;;
  5243.   esac
  5244.  
  5245.   # We use sed instead of cat because bash on DJGPP gets confused if
  5246.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  5247.   # text mode, it properly converts lines to CR/LF.  This bash problem
  5248.   # is reportedly fixed, but why not run on old versions too?
  5249.   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  5250.  
  5251.   mv -f "${ofile}T" "$ofile" || \
  5252.     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  5253.   chmod +x "$ofile"
  5254. fi
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260. # This can be used to rebuild libtool when needed
  5261. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  5262.  
  5263. # Always use our own libtool.
  5264. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5265.  
  5266. # Prevent multiple expansion
  5267.  
  5268.  
  5269.  
  5270.  
  5271. cflags_save="$CFLAGS"
  5272. ldflags_save="$LDFLAGS"
  5273. if test -z "$GCC"; then
  5274.         case $host in 
  5275.         *-*-irix*)
  5276.                 DEBUG="-g -signed" 
  5277.                 CFLAGS="-O2 -w -signed"
  5278.                 PROFILE="-p -g3 -O2 -signed"
  5279.         ;;
  5280.         sparc-sun-solaris*)
  5281.                 DEBUG="-v -g"
  5282.                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  5283.                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
  5284.         ;;
  5285.         *)
  5286.                 DEBUG="-g"
  5287.                 CFLAGS="-O"
  5288.                 PROFILE="-g -p" 
  5289.         ;;
  5290.         esac
  5291. else
  5292.         case $host in 
  5293.         *-*-linux*)
  5294.                 DEBUG="-g -Wall -fsigned-char"
  5295.                 CFLAGS="-O20 -ffast-math -fsigned-char"
  5296.                 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
  5297.         ;;
  5298.         sparc-sun-*)
  5299.                 DEBUG="-g -Wall -fsigned-char -mv8"
  5300.                 CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
  5301.                 PROFILE="-pg -g -O20 -fsigned-char -mv8" 
  5302.         ;;
  5303.     *-*-darwin*)
  5304.         DEBUG="-fno-common -g -Wall -fsigned-char"
  5305.         CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
  5306.         PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
  5307.         ;;
  5308.         *)
  5309.                 DEBUG="-g -Wall -fsigned-char"
  5310.                 CFLAGS="-O20 -fsigned-char"
  5311.                 PROFILE="-O20 -g -pg -fsigned-char" 
  5312.         ;;
  5313.         esac
  5314. fi
  5315. CFLAGS="$CFLAGS $cflags_save"
  5316. DEBUG="$DEBUG $cflags_save"
  5317. PROFILE="$PROFILE $cflags_save"
  5318. LDFLAGS="$LDFLAGS $ldflags_save"
  5319.  
  5320.  
  5321.  
  5322. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5323. echo "configure:5324: checking for ANSI C header files" >&5
  5324. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5325.   echo $ac_n "(cached) $ac_c" 1>&6
  5326. else
  5327.   cat > conftest.$ac_ext <<EOF
  5328. #line 5329 "configure"
  5329. #include "confdefs.h"
  5330. #include <stdlib.h>
  5331. #include <stdarg.h>
  5332. #include <string.h>
  5333. #include <float.h>
  5334. EOF
  5335. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5336. { (eval echo configure:5337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5337. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5338. if test -z "$ac_err"; then
  5339.   rm -rf conftest*
  5340.   ac_cv_header_stdc=yes
  5341. else
  5342.   echo "$ac_err" >&5
  5343.   echo "configure: failed program was:" >&5
  5344.   cat conftest.$ac_ext >&5
  5345.   rm -rf conftest*
  5346.   ac_cv_header_stdc=no
  5347. fi
  5348. rm -f conftest*
  5349.  
  5350. if test $ac_cv_header_stdc = yes; then
  5351.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5352. cat > conftest.$ac_ext <<EOF
  5353. #line 5354 "configure"
  5354. #include "confdefs.h"
  5355. #include <string.h>
  5356. EOF
  5357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5358.   egrep "memchr" >/dev/null 2>&1; then
  5359.   :
  5360. else
  5361.   rm -rf conftest*
  5362.   ac_cv_header_stdc=no
  5363. fi
  5364. rm -f conftest*
  5365.  
  5366. fi
  5367.  
  5368. if test $ac_cv_header_stdc = yes; then
  5369.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5370. cat > conftest.$ac_ext <<EOF
  5371. #line 5372 "configure"
  5372. #include "confdefs.h"
  5373. #include <stdlib.h>
  5374. EOF
  5375. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5376.   egrep "free" >/dev/null 2>&1; then
  5377.   :
  5378. else
  5379.   rm -rf conftest*
  5380.   ac_cv_header_stdc=no
  5381. fi
  5382. rm -f conftest*
  5383.  
  5384. fi
  5385.  
  5386. if test $ac_cv_header_stdc = yes; then
  5387.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5388. if test "$cross_compiling" = yes; then
  5389.   :
  5390. else
  5391.   cat > conftest.$ac_ext <<EOF
  5392. #line 5393 "configure"
  5393. #include "confdefs.h"
  5394. #include <ctype.h>
  5395. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5396. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5397. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5398. int main () { int i; for (i = 0; i < 256; i++)
  5399. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5400. exit (0); }
  5401.  
  5402. EOF
  5403. if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5404. then
  5405.   :
  5406. else
  5407.   echo "configure: failed program was:" >&5
  5408.   cat conftest.$ac_ext >&5
  5409.   rm -fr conftest*
  5410.   ac_cv_header_stdc=no
  5411. fi
  5412. rm -fr conftest*
  5413. fi
  5414.  
  5415. fi
  5416. fi
  5417.  
  5418. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5419. if test $ac_cv_header_stdc = yes; then
  5420.   cat >> confdefs.h <<\EOF
  5421. #define STDC_HEADERS 1
  5422. EOF
  5423.  
  5424. fi
  5425.  
  5426.  
  5427. echo $ac_n "checking for working const""... $ac_c" 1>&6
  5428. echo "configure:5429: checking for working const" >&5
  5429. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5430.   echo $ac_n "(cached) $ac_c" 1>&6
  5431. else
  5432.   cat > conftest.$ac_ext <<EOF
  5433. #line 5434 "configure"
  5434. #include "confdefs.h"
  5435.  
  5436. int main() {
  5437.  
  5438. /* Ultrix mips cc rejects this.  */
  5439. typedef int charset[2]; const charset x;
  5440. /* SunOS 4.1.1 cc rejects this.  */
  5441. char const *const *ccp;
  5442. char **p;
  5443. /* NEC SVR4.0.2 mips cc rejects this.  */
  5444. struct point {int x, y;};
  5445. static struct point const zero = {0,0};
  5446. /* AIX XL C 1.02.0.0 rejects this.
  5447.    It does not let you subtract one const X* pointer from another in an arm
  5448.    of an if-expression whose if-part is not a constant expression */
  5449. const char *g = "string";
  5450. ccp = &g + (g ? g-g : 0);
  5451. /* HPUX 7.0 cc rejects these. */
  5452. ++ccp;
  5453. p = (char**) ccp;
  5454. ccp = (char const *const *) p;
  5455. { /* SCO 3.2v4 cc rejects this.  */
  5456.   char *t;
  5457.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  5458.  
  5459.   *t++ = 0;
  5460. }
  5461. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  5462.   int x[] = {25, 17};
  5463.   const int *foo = &x[0];
  5464.   ++foo;
  5465. }
  5466. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5467.   typedef const int *iptr;
  5468.   iptr p = 0;
  5469.   ++p;
  5470. }
  5471. { /* AIX XL C 1.02.0.0 rejects this saying
  5472.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5473.   struct s { int j; const int *ap[3]; };
  5474.   struct s *b; b->j = 5;
  5475. }
  5476. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5477.   const int foo = 10;
  5478. }
  5479.  
  5480. ; return 0; }
  5481. EOF
  5482. if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5483.   rm -rf conftest*
  5484.   ac_cv_c_const=yes
  5485. else
  5486.   echo "configure: failed program was:" >&5
  5487.   cat conftest.$ac_ext >&5
  5488.   rm -rf conftest*
  5489.   ac_cv_c_const=no
  5490. fi
  5491. rm -f conftest*
  5492. fi
  5493.  
  5494. echo "$ac_t""$ac_cv_c_const" 1>&6
  5495. if test $ac_cv_c_const = no; then
  5496.   cat >> confdefs.h <<\EOF
  5497. #define const 
  5498. EOF
  5499.  
  5500. fi
  5501.  
  5502.  
  5503.  
  5504. echo $ac_n "checking for int16_t""... $ac_c" 1>&6
  5505. echo "configure:5506: checking for int16_t" >&5
  5506. if eval "test \"`echo '$''{'has_int16_t'+set}'`\" = set"; then
  5507.   echo $ac_n "(cached) $ac_c" 1>&6
  5508. else
  5509.   if test "$cross_compiling" = yes; then
  5510.   has_int16_t=no
  5511.  
  5512. else
  5513.   cat > conftest.$ac_ext <<EOF
  5514. #line 5515 "configure"
  5515. #include "confdefs.h"
  5516.  
  5517. #ifdef __BEOS__
  5518. #include <inttypes.h>
  5519. #endif
  5520. #include <sys/types.h>
  5521. int16_t foo;
  5522. int main() {return 0;}
  5523.  
  5524. EOF
  5525. if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5526. then
  5527.   has_int16_t=yes
  5528. else
  5529.   echo "configure: failed program was:" >&5
  5530.   cat conftest.$ac_ext >&5
  5531.   rm -fr conftest*
  5532.   has_int16_t=no
  5533. fi
  5534. rm -fr conftest*
  5535. fi
  5536.  
  5537. fi
  5538.  
  5539. echo "$ac_t""$has_int16_t" 1>&6
  5540.  
  5541. echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  5542. echo "configure:5543: checking for int32_t" >&5
  5543. if eval "test \"`echo '$''{'has_int32_t'+set}'`\" = set"; then
  5544.   echo $ac_n "(cached) $ac_c" 1>&6
  5545. else
  5546.   if test "$cross_compiling" = yes; then
  5547.   has_int32_t=no
  5548.  
  5549. else
  5550.   cat > conftest.$ac_ext <<EOF
  5551. #line 5552 "configure"
  5552. #include "confdefs.h"
  5553.  
  5554. #ifdef __BEOS__
  5555. #include <inttypes.h>
  5556. #endif
  5557. #include <sys/types.h>
  5558. int32_t foo;
  5559. int main() {return 0;}
  5560.  
  5561. EOF
  5562. if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5563. then
  5564.   has_int32_t=yes
  5565. else
  5566.   echo "configure: failed program was:" >&5
  5567.   cat conftest.$ac_ext >&5
  5568.   rm -fr conftest*
  5569.   has_int32_t=no
  5570. fi
  5571. rm -fr conftest*
  5572. fi
  5573.  
  5574. fi
  5575.  
  5576. echo "$ac_t""$has_int32_t" 1>&6
  5577.  
  5578. echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  5579. echo "configure:5580: checking for uint32_t" >&5
  5580. if eval "test \"`echo '$''{'has_uint32_t'+set}'`\" = set"; then
  5581.   echo $ac_n "(cached) $ac_c" 1>&6
  5582. else
  5583.   if test "$cross_compiling" = yes; then
  5584.   has_uint32_t=no
  5585.  
  5586. else
  5587.   cat > conftest.$ac_ext <<EOF
  5588. #line 5589 "configure"
  5589. #include "confdefs.h"
  5590.  
  5591. #ifdef __BEOS__
  5592. #include <inttypes.h>
  5593. #endif
  5594. #include <sys/types.h>
  5595. uint32_t foo;
  5596. int main() {return 0;}
  5597.  
  5598. EOF
  5599. if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5600. then
  5601.   has_uint32_t=yes
  5602. else
  5603.   echo "configure: failed program was:" >&5
  5604.   cat conftest.$ac_ext >&5
  5605.   rm -fr conftest*
  5606.   has_uint32_t=no
  5607. fi
  5608. rm -fr conftest*
  5609. fi
  5610.  
  5611. fi
  5612.  
  5613. echo "$ac_t""$has_uint32_t" 1>&6
  5614.  
  5615. echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
  5616. echo "configure:5617: checking for u_int32_t" >&5
  5617. if eval "test \"`echo '$''{'has_u_int32_t'+set}'`\" = set"; then
  5618.   echo $ac_n "(cached) $ac_c" 1>&6
  5619. else
  5620.   if test "$cross_compiling" = yes; then
  5621.   has_u_int32_t=no
  5622.  
  5623. else
  5624.   cat > conftest.$ac_ext <<EOF
  5625. #line 5626 "configure"
  5626. #include "confdefs.h"
  5627.  
  5628. #ifdef __BEOS__
  5629. #include <inttypes.h>
  5630. #endif
  5631. #include <sys/types.h>
  5632. u_int32_t foo;
  5633. int main() {return 0;}
  5634.  
  5635. EOF
  5636. if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5637. then
  5638.   has_u_int32_t=yes
  5639. else
  5640.   echo "configure: failed program was:" >&5
  5641.   cat conftest.$ac_ext >&5
  5642.   rm -fr conftest*
  5643.   has_u_int32_t=no
  5644. fi
  5645. rm -fr conftest*
  5646. fi
  5647.  
  5648. fi
  5649.  
  5650. echo "$ac_t""$has_u_int32_t" 1>&6
  5651.  
  5652. echo $ac_n "checking for int64_t""... $ac_c" 1>&6
  5653. echo "configure:5654: checking for int64_t" >&5
  5654. if eval "test \"`echo '$''{'has_int64_t'+set}'`\" = set"; then
  5655.   echo $ac_n "(cached) $ac_c" 1>&6
  5656. else
  5657.   if test "$cross_compiling" = yes; then
  5658.   has_int64_t=no
  5659.  
  5660. else
  5661.   cat > conftest.$ac_ext <<EOF
  5662. #line 5663 "configure"
  5663. #include "confdefs.h"
  5664.  
  5665. #ifdef __BEOS__
  5666. #include <inttypes.h>
  5667. #endif
  5668. #include <sys/types.h>
  5669. int64_t foo;
  5670. int main() {return 0;}
  5671.  
  5672. EOF
  5673. if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5674. then
  5675.   has_int64_t=yes
  5676. else
  5677.   echo "configure: failed program was:" >&5
  5678.   cat conftest.$ac_ext >&5
  5679.   rm -fr conftest*
  5680.   has_int64_t=no
  5681. fi
  5682. rm -fr conftest*
  5683. fi
  5684.  
  5685. fi
  5686.  
  5687. echo "$ac_t""$has_int64_t" 1>&6
  5688.  
  5689. echo $ac_n "checking size of short""... $ac_c" 1>&6
  5690. echo "configure:5691: checking size of short" >&5
  5691. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  5692.   echo $ac_n "(cached) $ac_c" 1>&6
  5693. else
  5694.   if test "$cross_compiling" = yes; then
  5695.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  5696. else
  5697.   cat > conftest.$ac_ext <<EOF
  5698. #line 5699 "configure"
  5699. #include "confdefs.h"
  5700. #include <stdio.h>
  5701. #include <sys/types.h>
  5702. main()
  5703. {
  5704.   FILE *f=fopen("conftestval", "w");
  5705.   if (!f) exit(1);
  5706.   fprintf(f, "%d\n", sizeof(short));
  5707.   exit(0);
  5708. }
  5709. EOF
  5710. if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5711. then
  5712.   ac_cv_sizeof_short=`cat conftestval`
  5713. else
  5714.   echo "configure: failed program was:" >&5
  5715.   cat conftest.$ac_ext >&5
  5716.   rm -fr conftest*
  5717.   ac_cv_sizeof_short=0
  5718. fi
  5719. rm -fr conftest*
  5720. fi
  5721.  
  5722. fi
  5723. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  5724. cat >> confdefs.h <<EOF
  5725. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5726. EOF
  5727.  
  5728.  
  5729. echo $ac_n "checking size of int""... $ac_c" 1>&6
  5730. echo "configure:5731: checking size of int" >&5
  5731. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  5732.   echo $ac_n "(cached) $ac_c" 1>&6
  5733. else
  5734.   if test "$cross_compiling" = yes; then
  5735.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  5736. else
  5737.   cat > conftest.$ac_ext <<EOF
  5738. #line 5739 "configure"
  5739. #include "confdefs.h"
  5740. #include <stdio.h>
  5741. #include <sys/types.h>
  5742. main()
  5743. {
  5744.   FILE *f=fopen("conftestval", "w");
  5745.   if (!f) exit(1);
  5746.   fprintf(f, "%d\n", sizeof(int));
  5747.   exit(0);
  5748. }
  5749. EOF
  5750. if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5751. then
  5752.   ac_cv_sizeof_int=`cat conftestval`
  5753. else
  5754.   echo "configure: failed program was:" >&5
  5755.   cat conftest.$ac_ext >&5
  5756.   rm -fr conftest*
  5757.   ac_cv_sizeof_int=0
  5758. fi
  5759. rm -fr conftest*
  5760. fi
  5761.  
  5762. fi
  5763. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  5764. cat >> confdefs.h <<EOF
  5765. #define SIZEOF_INT $ac_cv_sizeof_int
  5766. EOF
  5767.  
  5768.  
  5769. echo $ac_n "checking size of long""... $ac_c" 1>&6
  5770. echo "configure:5771: checking size of long" >&5
  5771. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  5772.   echo $ac_n "(cached) $ac_c" 1>&6
  5773. else
  5774.   if test "$cross_compiling" = yes; then
  5775.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  5776. else
  5777.   cat > conftest.$ac_ext <<EOF
  5778. #line 5779 "configure"
  5779. #include "confdefs.h"
  5780. #include <stdio.h>
  5781. #include <sys/types.h>
  5782. main()
  5783. {
  5784.   FILE *f=fopen("conftestval", "w");
  5785.   if (!f) exit(1);
  5786.   fprintf(f, "%d\n", sizeof(long));
  5787.   exit(0);
  5788. }
  5789. EOF
  5790. if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5791. then
  5792.   ac_cv_sizeof_long=`cat conftestval`
  5793. else
  5794.   echo "configure: failed program was:" >&5
  5795.   cat conftest.$ac_ext >&5
  5796.   rm -fr conftest*
  5797.   ac_cv_sizeof_long=0
  5798. fi
  5799. rm -fr conftest*
  5800. fi
  5801.  
  5802. fi
  5803. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  5804. cat >> confdefs.h <<EOF
  5805. #define SIZEOF_LONG $ac_cv_sizeof_long
  5806. EOF
  5807.  
  5808.  
  5809. echo $ac_n "checking size of long long""... $ac_c" 1>&6
  5810. echo "configure:5811: checking size of long long" >&5
  5811. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  5812.   echo $ac_n "(cached) $ac_c" 1>&6
  5813. else
  5814.   if test "$cross_compiling" = yes; then
  5815.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  5816. else
  5817.   cat > conftest.$ac_ext <<EOF
  5818. #line 5819 "configure"
  5819. #include "confdefs.h"
  5820. #include <stdio.h>
  5821. #include <sys/types.h>
  5822. main()
  5823. {
  5824.   FILE *f=fopen("conftestval", "w");
  5825.   if (!f) exit(1);
  5826.   fprintf(f, "%d\n", sizeof(long long));
  5827.   exit(0);
  5828. }
  5829. EOF
  5830. if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5831. then
  5832.   ac_cv_sizeof_long_long=`cat conftestval`
  5833. else
  5834.   echo "configure: failed program was:" >&5
  5835.   cat conftest.$ac_ext >&5
  5836.   rm -fr conftest*
  5837.   ac_cv_sizeof_long_long=0
  5838. fi
  5839. rm -fr conftest*
  5840. fi
  5841.  
  5842. fi
  5843. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  5844. cat >> confdefs.h <<EOF
  5845. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5846. EOF
  5847.  
  5848.  
  5849.  
  5850.  
  5851. if test x$has_int16_t = "xyes" ; then
  5852.         SIZE16="int16_t"
  5853. else
  5854.         case 2 in
  5855.                 $ac_cv_sizeof_short) SIZE16="short";;
  5856.                 $ac_cv_sizeof_int) SIZE16="int";;
  5857.         esac
  5858. fi
  5859.  
  5860. if test x$has_int32_t = "xyes" ; then
  5861.         SIZE32="int32_t"
  5862. else
  5863.         case 4 in
  5864.                 $ac_cv_sizeof_short) SIZE32="short";;
  5865.                 $ac_cv_sizeof_int) SIZE32="int";;
  5866.                 $ac_cv_sizeof_long) SIZE32="long";;
  5867.         esac
  5868. fi
  5869.  
  5870. if test x$has_uint32_t = "xyes" ; then
  5871.         USIZE32="uint32_t"
  5872. else
  5873.         if test x$has_u_int32_t = "xyes" ; then
  5874.                 USIZE32="u_int32_t"
  5875.         else
  5876.                 case 4 in
  5877.                         $ac_cv_sizeof_short) USIZE32="unsigned short";;
  5878.                         $ac_cv_sizeof_int) USIZE32="unsigned int";;
  5879.                         $ac_cv_sizeof_long) USIZE32="unsigned long";;
  5880.                 esac
  5881.         fi
  5882. fi
  5883.  
  5884. if test x$has_int64_t = "xyes" ; then
  5885.         SIZE64="int64_t"
  5886. else
  5887. case 8 in
  5888.         $ac_cv_sizeof_int) SIZE64="int";;
  5889.         $ac_cv_sizeof_long) SIZE64="long";;
  5890.         $ac_cv_sizeof_long_long) SIZE64="long long";;
  5891. esac
  5892. fi
  5893.  
  5894. if test -z "$SIZE16"; then
  5895.         { echo "configure: error: No 16 bit type found on this platform!" 1>&2; exit 1; }
  5896. fi
  5897. if test -z "$SIZE32"; then
  5898.         { echo "configure: error: No 32 bit type found on this platform!" 1>&2; exit 1; }
  5899. fi
  5900. if test -z "$USIZE32"; then
  5901.         { echo "configure: error: No unsigned 32 bit type found on this platform!" 1>&2; exit 1; }
  5902. fi
  5903. if test -z "$SIZE64"; then
  5904.         echo "configure: warning: No 64 bit type found on this platform!" 1>&2
  5905. fi
  5906.  
  5907. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  5908. echo "configure:5909: checking for 8-bit clean memcmp" >&5
  5909. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  5910.   echo $ac_n "(cached) $ac_c" 1>&6
  5911. else
  5912.   if test "$cross_compiling" = yes; then
  5913.   ac_cv_func_memcmp_clean=no
  5914. else
  5915.   cat > conftest.$ac_ext <<EOF
  5916. #line 5917 "configure"
  5917. #include "confdefs.h"
  5918.  
  5919. main()
  5920. {
  5921.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  5922.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  5923. }
  5924.  
  5925. EOF
  5926. if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5927. then
  5928.   ac_cv_func_memcmp_clean=yes
  5929. else
  5930.   echo "configure: failed program was:" >&5
  5931.   cat conftest.$ac_ext >&5
  5932.   rm -fr conftest*
  5933.   ac_cv_func_memcmp_clean=no
  5934. fi
  5935. rm -fr conftest*
  5936. fi
  5937.  
  5938. fi
  5939.  
  5940. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  5941. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955.  
  5956. trap '' 1 2 15
  5957. cat > confcache <<\EOF
  5958. # This file is a shell script that caches the results of configure
  5959. # tests run on this system so they can be shared between configure
  5960. # scripts and configure runs.  It is not useful on other systems.
  5961. # If it contains results you don't want to keep, you may remove or edit it.
  5962. #
  5963. # By default, configure uses ./config.cache as the cache file,
  5964. # creating it if it does not exist already.  You can give configure
  5965. # the --cache-file=FILE option to use a different cache file; that is
  5966. # what configure does when it calls configure scripts in
  5967. # subdirectories, so they share the cache.
  5968. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5969. # config.status only pays attention to the cache file if you give it the
  5970. # --recheck option to rerun configure.
  5971. #
  5972. EOF
  5973. # The following way of writing the cache mishandles newlines in values,
  5974. # but we know of no workaround that is simple, portable, and efficient.
  5975. # So, don't put newlines in cache variables' values.
  5976. # Ultrix sh set writes to stderr and can't be redirected directly,
  5977. # and sets the high bit in the cache file unless we assign to the vars.
  5978. (set) 2>&1 |
  5979.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5980.   *ac_space=\ *)
  5981.     # `set' does not quote correctly, so add quotes (double-quote substitution
  5982.     # turns \\\\ into \\, and sed turns \\ into \).
  5983.     sed -n \
  5984.       -e "s/'/'\\\\''/g" \
  5985.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5986.     ;;
  5987.   *)
  5988.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  5989.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5990.     ;;
  5991.   esac >> confcache
  5992. if cmp -s $cache_file confcache; then
  5993.   :
  5994. else
  5995.   if test -w $cache_file; then
  5996.     echo "updating cache $cache_file"
  5997.     cat confcache > $cache_file
  5998.   else
  5999.     echo "not updating unwritable cache $cache_file"
  6000.   fi
  6001. fi
  6002. rm -f confcache
  6003.  
  6004. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6005.  
  6006. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6007. # Let make expand exec_prefix.
  6008. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6009.  
  6010. # Any assignment to VPATH causes Sun make to only execute
  6011. # the first set of double-colon rules, so remove it if not needed.
  6012. # If there is a colon in the path, we need to keep it.
  6013. if test "x$srcdir" = x.; then
  6014.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  6015. fi
  6016.  
  6017. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  6018.  
  6019. # Transform confdefs.h into DEFS.
  6020. # Protect against shell expansion while executing Makefile rules.
  6021. # Protect against Makefile macro expansion.
  6022. cat > conftest.defs <<\EOF
  6023. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  6024. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  6025. s%\[%\\&%g
  6026. s%\]%\\&%g
  6027. s%\$%$$%g
  6028. EOF
  6029. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  6030. rm -f conftest.defs
  6031.  
  6032.  
  6033. # Without the "./", some shells look in PATH for config.status.
  6034. : ${CONFIG_STATUS=./config.status}
  6035.  
  6036. echo creating $CONFIG_STATUS
  6037. rm -f $CONFIG_STATUS
  6038. cat > $CONFIG_STATUS <<EOF
  6039. #! /bin/sh
  6040. # Generated automatically by configure.
  6041. # Run this file to recreate the current configuration.
  6042. # This directory was configured as follows,
  6043. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6044. #
  6045. # $0 $ac_configure_args
  6046. #
  6047. # Compiler output produced by configure, useful for debugging
  6048. # configure, is in ./config.log if it exists.
  6049.  
  6050. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  6051. for ac_option
  6052. do
  6053.   case "\$ac_option" in
  6054.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6055.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  6056.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  6057.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  6058.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  6059.     exit 0 ;;
  6060.   -help | --help | --hel | --he | --h)
  6061.     echo "\$ac_cs_usage"; exit 0 ;;
  6062.   *) echo "\$ac_cs_usage"; exit 1 ;;
  6063.   esac
  6064. done
  6065.  
  6066. ac_given_srcdir=$srcdir
  6067. ac_given_INSTALL="$INSTALL"
  6068.  
  6069. trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile doc/ogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile debian/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  6070. EOF
  6071. cat >> $CONFIG_STATUS <<EOF
  6072.  
  6073. # Protect against being on the right side of a sed subst in config.status.
  6074. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  6075.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  6076. $ac_vpsub
  6077. $extrasub
  6078. s%@SHELL@%$SHELL%g
  6079. s%@CFLAGS@%$CFLAGS%g
  6080. s%@CPPFLAGS@%$CPPFLAGS%g
  6081. s%@CXXFLAGS@%$CXXFLAGS%g
  6082. s%@FFLAGS@%$FFLAGS%g
  6083. s%@DEFS@%$DEFS%g
  6084. s%@LDFLAGS@%$LDFLAGS%g
  6085. s%@LIBS@%$LIBS%g
  6086. s%@exec_prefix@%$exec_prefix%g
  6087. s%@prefix@%$prefix%g
  6088. s%@program_transform_name@%$program_transform_name%g
  6089. s%@bindir@%$bindir%g
  6090. s%@sbindir@%$sbindir%g
  6091. s%@libexecdir@%$libexecdir%g
  6092. s%@datadir@%$datadir%g
  6093. s%@sysconfdir@%$sysconfdir%g
  6094. s%@sharedstatedir@%$sharedstatedir%g
  6095. s%@localstatedir@%$localstatedir%g
  6096. s%@libdir@%$libdir%g
  6097. s%@includedir@%$includedir%g
  6098. s%@oldincludedir@%$oldincludedir%g
  6099. s%@infodir@%$infodir%g
  6100. s%@mandir@%$mandir%g
  6101. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6102. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  6103. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6104. s%@PACKAGE@%$PACKAGE%g
  6105. s%@VERSION@%$VERSION%g
  6106. s%@ACLOCAL@%$ACLOCAL%g
  6107. s%@AUTOCONF@%$AUTOCONF%g
  6108. s%@AUTOMAKE@%$AUTOMAKE%g
  6109. s%@AUTOHEADER@%$AUTOHEADER%g
  6110. s%@MAKEINFO@%$MAKEINFO%g
  6111. s%@SET_MAKE@%$SET_MAKE%g
  6112. s%@LIB_CURRENT@%$LIB_CURRENT%g
  6113. s%@LIB_REVISION@%$LIB_REVISION%g
  6114. s%@LIB_AGE@%$LIB_AGE%g
  6115. s%@CC@%$CC%g
  6116. s%@host@%$host%g
  6117. s%@host_alias@%$host_alias%g
  6118. s%@host_cpu@%$host_cpu%g
  6119. s%@host_vendor@%$host_vendor%g
  6120. s%@host_os@%$host_os%g
  6121. s%@build@%$build%g
  6122. s%@build_alias@%$build_alias%g
  6123. s%@build_cpu@%$build_cpu%g
  6124. s%@build_vendor@%$build_vendor%g
  6125. s%@build_os@%$build_os%g
  6126. s%@LN_S@%$LN_S%g
  6127. s%@OBJEXT@%$OBJEXT%g
  6128. s%@EXEEXT@%$EXEEXT%g
  6129. s%@ECHO@%$ECHO%g
  6130. s%@RANLIB@%$RANLIB%g
  6131. s%@STRIP@%$STRIP%g
  6132. s%@CPP@%$CPP%g
  6133. s%@LIBTOOL@%$LIBTOOL%g
  6134. s%@LIBOBJS@%$LIBOBJS%g
  6135. s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
  6136. s%@SIZE16@%$SIZE16%g
  6137. s%@SIZE32@%$SIZE32%g
  6138. s%@USIZE32@%$USIZE32%g
  6139. s%@SIZE64@%$SIZE64%g
  6140. s%@OPT@%$OPT%g
  6141. s%@DEBUG@%$DEBUG%g
  6142. s%@PROFILE@%$PROFILE%g
  6143.  
  6144. CEOF
  6145. EOF
  6146.  
  6147. cat >> $CONFIG_STATUS <<\EOF
  6148.  
  6149. # Split the substitutions into bite-sized pieces for seds with
  6150. # small command number limits, like on Digital OSF/1 and HP-UX.
  6151. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6152. ac_file=1 # Number of current file.
  6153. ac_beg=1 # First line for current file.
  6154. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6155. ac_more_lines=:
  6156. ac_sed_cmds=""
  6157. while $ac_more_lines; do
  6158.   if test $ac_beg -gt 1; then
  6159.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6160.   else
  6161.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6162.   fi
  6163.   if test ! -s conftest.s$ac_file; then
  6164.     ac_more_lines=false
  6165.     rm -f conftest.s$ac_file
  6166.   else
  6167.     if test -z "$ac_sed_cmds"; then
  6168.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6169.     else
  6170.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6171.     fi
  6172.     ac_file=`expr $ac_file + 1`
  6173.     ac_beg=$ac_end
  6174.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6175.   fi
  6176. done
  6177. if test -z "$ac_sed_cmds"; then
  6178.   ac_sed_cmds=cat
  6179. fi
  6180. EOF
  6181.  
  6182. cat >> $CONFIG_STATUS <<EOF
  6183.  
  6184. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile doc/ogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile debian/Makefile"}
  6185. EOF
  6186. cat >> $CONFIG_STATUS <<\EOF
  6187. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6188.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6189.   case "$ac_file" in
  6190.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6191.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6192.   *) ac_file_in="${ac_file}.in" ;;
  6193.   esac
  6194.  
  6195.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6196.  
  6197.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6198.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6199.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6200.     # The file is in a subdirectory.
  6201.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6202.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6203.     # A "../" for each directory in $ac_dir_suffix.
  6204.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6205.   else
  6206.     ac_dir_suffix= ac_dots=
  6207.   fi
  6208.  
  6209.   case "$ac_given_srcdir" in
  6210.   .)  srcdir=.
  6211.       if test -z "$ac_dots"; then top_srcdir=.
  6212.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6213.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6214.   *) # Relative path.
  6215.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6216.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6217.   esac
  6218.  
  6219.   case "$ac_given_INSTALL" in
  6220.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6221.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6222.   esac
  6223.  
  6224.   echo creating "$ac_file"
  6225.   rm -f "$ac_file"
  6226.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6227.   case "$ac_file" in
  6228.   *Makefile*) ac_comsub="1i\\
  6229. # $configure_input" ;;
  6230.   *) ac_comsub= ;;
  6231.   esac
  6232.  
  6233.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6234.   sed -e "$ac_comsub
  6235. s%@configure_input@%$configure_input%g
  6236. s%@srcdir@%$srcdir%g
  6237. s%@top_srcdir@%$top_srcdir%g
  6238. s%@INSTALL@%$INSTALL%g
  6239. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6240. fi; done
  6241. rm -f conftest.s*
  6242.  
  6243. EOF
  6244. cat >> $CONFIG_STATUS <<EOF
  6245.  
  6246. EOF
  6247. cat >> $CONFIG_STATUS <<\EOF
  6248.  
  6249. exit 0
  6250. EOF
  6251. chmod +x $CONFIG_STATUS
  6252. rm -fr confdefs* $ac_clean_files
  6253. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  6254.  
  6255.